Skip to content

Commit

Permalink
ça c'est moi
Browse files Browse the repository at this point in the history
  • Loading branch information
Ipuch committed Feb 7, 2025
1 parent 6ec826e commit fc7fffb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pyorerun/biorbd_components/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ class TransformableMeshUpdater(Component):
"""

def __init__(self, name: str, mesh: Trimesh, transform_callable: callable):
filename = mesh.metadata["file_name"] if "file_name" in mesh.metadata else mesh.metadata["header"].replace(" ", "")
filename = (
mesh.metadata["file_name"] if "file_name" in mesh.metadata else mesh.metadata["header"].replace(" ", "")
)
self.__name = name + "/" + filename
self.__mesh = mesh

Expand Down
2 changes: 1 addition & 1 deletion pyorerun/biorbd_components/model_markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def compute_markers(self, q: np.ndarray) -> np.ndarray:
nb_frames = q.shape[1]
markers = np.zeros((3, self.nb_markers, nb_frames))
for f in range(q.shape[1]):
markers[:, :, f] = self.callable_markers(q[:, f]).T
markers[:, :, f] = self.callable_markers(q[:, f]).squeeze().T

return markers

Expand Down

0 comments on commit fc7fffb

Please sign in to comment.