Skip to content

Commit

Permalink
Apply ruff suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Nov 8, 2024
1 parent c8a713b commit 10f190d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/rod/kinematics/tree_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

@dataclasses.dataclass
class TreeTransforms:
kinematic_tree: KinematicTree = dataclasses.dataclass(init=False)
kinematic_tree: KinematicTree = dataclasses.field(
default_factory=dataclasses.dataclass(init=False)
)
_transform_cache: dict[str, npt.NDArray] = dataclasses.field(default_factory=dict)

@staticmethod
Expand Down
4 changes: 1 addition & 3 deletions src/rod/utils/frame_convention.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,7 @@ def switch_frame_convention(
# Adjust the reference frames of all sub-models
for sub_model in model.models():
logging.info(
"Model composition not yet supported, ignoring '{}/{}'".format(
model.name, sub_model.name
)
f"Model composition not yet supported, ignoring '{model.name}/{sub_model.name}'"
)

# Adjust the reference frames of all joints
Expand Down

0 comments on commit 10f190d

Please sign in to comment.