Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TYPO] Typo fix in code #891

Merged
merged 1 commit into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions fury/gltf.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,8 +813,8 @@ def transverse_bones(self, bone_id, channel_name, parent_animation: Animation):
if bone_id in self.animation_channels[channel_name]:
transforms = self.animation_channels[channel_name][bone_id]
timestamps = transforms["timestamps"]
metrices = transforms["matrix"]
for time, matrix in zip(timestamps, metrices):
matrices = transforms["matrix"]
for time, matrix in zip(timestamps, matrices):
animation.set_keyframe("transform", time[0], matrix)
else:
animation.set_keyframe("transform", 0.0, orig_transform)
Expand Down Expand Up @@ -934,10 +934,10 @@ def morph_animation(self):
weights = self.morph_weights[i]
animation = Animation()
timestamps = transforms["timestamps"]
metrices = transforms["matrix"]
metrices = np.array(metrices).reshape(-1, len(weights))
matrices = transforms["matrix"]
matrices = np.array(matrices).reshape(-1, len(weights))

for time, weights in zip(timestamps, metrices):
for time, weights in zip(timestamps, matrices):
animation.set_keyframe("morph", time[0], weights)
root_animation.add(animation)

Expand Down
2 changes: 1 addition & 1 deletion fury/tests/test_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ def test_comm(use_raw_array=True):

def test_queue_and_webserver():
"""Check if the correct
envent ids and the data are stored in the
event ids and the data are stored in the
correct positions
"""
max_size = 3
Expand Down
Loading