Skip to content

Commit

Permalink
Solved the fetch_gltf argument errors.
Browse files Browse the repository at this point in the history
Worked on a UserWarning by making sure all inputs to fetch_gltf were keyword arguments and changing those that were not
  • Loading branch information
kkoco2266 committed Sep 28, 2024
1 parent ecfe787 commit 490fd90
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/examples/viz_gltf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

##############################################################################
# Retrieving the gltf model.
fury.data.fetch_gltf("Duck", "glTF")
fury.data.fetch_gltf(name="Duck", mode="glTF")
filename = fury.data.read_viz_gltf("Duck")

##############################################################################
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/viz_gltf_animated.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

##############################################################################
# Retrieving the gltf model.
fury.data.fetch_gltf("InterpolationTest", "glTF")
fury.data.fetch_gltf(name="InterpolationTest", mode="glTF")
filename = fury.data.read_viz_gltf("InterpolationTest")

##############################################################################
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/viz_gltf_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
sphere = fury.actor.sphere(np.add(centers, np.array([0, 2, 0])), colors=colors)
scene.add(sphere)

fury.data.fetch_gltf("BoxTextured", "glTF")
fury.data.fetch_gltf(name="BoxTextured", mode="glTF")
filename = fury.data.read_viz_gltf("BoxTextured")
gltf_obj = fury.gltf.glTF(filename)
box_actor = gltf_obj.actors()
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/viz_morphing.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# Retrieving the model with morphing in it (look at Khronoos samples).
# We're choosing the `MorphStressTest` model here.

fury.data.fetch_gltf("MorphStressTest", "glTF")
fury.data.fetch_gltf(name="MorphStressTest", mode="glTF")
filename = fury.data.read_viz_gltf("MorphStressTest")

##############################################################################
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/viz_skinning.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Retrieving the model with skeletal animations.
# We're choosing the `RiggedFigure` model here.

fury.data.fetch_gltf("RiggedFigure", "glTF")
fury.data.fetch_gltf(name="RiggedFigure", mode="glTF")
filename = fury.data.read_viz_gltf("RiggedFigure")

##############################################################################
Expand Down

0 comments on commit 490fd90

Please sign in to comment.