From c8ef55ba4e9bd8cfc24ef6edec3b852807b575a4 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 29 May 2024 16:45:10 +0530 Subject: [PATCH] [TYPO] typo fixes --- fury/gltf.py | 10 +++++----- fury/tests/test_stream.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fury/gltf.py b/fury/gltf.py index 54079a598..5b02ff68d 100644 --- a/fury/gltf.py +++ b/fury/gltf.py @@ -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) @@ -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) diff --git a/fury/tests/test_stream.py b/fury/tests/test_stream.py index b257e53b7..5db6a05da 100644 --- a/fury/tests/test_stream.py +++ b/fury/tests/test_stream.py @@ -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