Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
zswang666 committed Dec 22, 2024
1 parent 87c53a8 commit 58895b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genesis/engine/solvers/rigid/rigid_solver_decomp.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def _init_dof_fields(self):

joints = self.joints
is_nonempty = np.concatenate([joint.dofs_motion_ang for joint in joints], dtype=gs.np_float).shape[0] > 0
if is_nonempty: # handle the case where there is a link with no dofs -- otherwise may cause invalid memory
if is_nonempty: # handle the case where there is a link with no dofs -- otherwise may cause invalid memory
self._kernel_init_dof_fields(
dofs_motion_ang=np.concatenate([joint.dofs_motion_ang for joint in joints], dtype=gs.np_float),
dofs_motion_vel=np.concatenate([joint.dofs_motion_vel for joint in joints], dtype=gs.np_float),
Expand Down

0 comments on commit 58895b6

Please sign in to comment.