Skip to content

Commit

Permalink
Formatting with black
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulero committed Jan 8, 2025
1 parent d02bf2b commit 9ec786d
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 12 deletions.
6 changes: 5 additions & 1 deletion src/adam/casadi/computations.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ def __init__(
self.g = gravity
self.f_opts = f_opts
if root_link is not None:
warnings.warn("The root_link argument is not used. The root link is automatically chosen as the link with no parent in the URDF", DeprecationWarning, stacklevel=2)
warnings.warn(
"The root_link argument is not used. The root link is automatically chosen as the link with no parent in the URDF",
DeprecationWarning,
stacklevel=2,
)

def set_frame_velocity_representation(
self, representation: Representations
Expand Down
3 changes: 1 addition & 2 deletions src/adam/core/rbd_algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@


class RBDAlgorithms:
"""This is a small class that implements Rigid body algorithms retrieving robot quantities, for Floating Base systems - as humanoid robots.
"""
"""This is a small class that implements Rigid body algorithms retrieving robot quantities, for Floating Base systems - as humanoid robots."""

def __init__(self, model: Model, math: SpatialMath) -> None:
"""
Expand Down
6 changes: 5 additions & 1 deletion src/adam/jax/computations.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ def __init__(
self.NDoF = self.rbdalgos.NDoF
self.g = gravity
if root_link is not None:
warnings.warn("The root_link argument is not used. The root link is automatically chosen as the link with no parent in the URDF", DeprecationWarning, stacklevel=2)
warnings.warn(
"The root_link argument is not used. The root link is automatically chosen as the link with no parent in the URDF",
DeprecationWarning,
stacklevel=2,
)

def set_frame_velocity_representation(
self, representation: Representations
Expand Down
6 changes: 5 additions & 1 deletion src/adam/numpy/computations.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ def __init__(
self.NDoF = model.NDoF
self.g = gravity
if root_link is not None:
warnings.warn("The root_link argument is not used. The root link is automatically chosen as the link with no parent in the URDF", DeprecationWarning, stacklevel=2)
warnings.warn(
"The root_link argument is not used. The root link is automatically chosen as the link with no parent in the URDF",
DeprecationWarning,
stacklevel=2,
)

def set_frame_velocity_representation(
self, representation: Representations
Expand Down
6 changes: 5 additions & 1 deletion src/adam/parametric/casadi/computations_parametric.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ def __init__(
self.g = gravity
self.f_opts = f_opts
if root_link is not None:
warnings.warn("The root_link argument is not used. The root link is automatically chosen as the link with no parent in the URDF", DeprecationWarning, stacklevel=2)
warnings.warn(
"The root_link argument is not used. The root link is automatically chosen as the link with no parent in the URDF",
DeprecationWarning,
stacklevel=2,
)

def set_frame_velocity_representation(
self, representation: Representations
Expand Down
6 changes: 5 additions & 1 deletion src/adam/parametric/jax/computations_parametric.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ def __init__(
self.joints_name_list = joints_name_list
self.representation = Representations.MIXED_REPRESENTATION # Default
if root_link is not None:
warnings.warn("The root_link argument is not used. The root link is automatically chosen as the link with no parent in the URDF", DeprecationWarning, stacklevel=2)
warnings.warn(
"The root_link argument is not used. The root link is automatically chosen as the link with no parent in the URDF",
DeprecationWarning,
stacklevel=2,
)

def set_frame_velocity_representation(
self, representation: Representations
Expand Down
6 changes: 5 additions & 1 deletion src/adam/parametric/numpy/computations_parametric.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ def __init__(
self.joints_name_list = joints_name_list
self.representation = Representations.MIXED_REPRESENTATION # Default
if root_link is not None:
warnings.warn("The root_link argument is not used. The root link is automatically chosen as the link with no parent in the URDF", DeprecationWarning, stacklevel=2)
warnings.warn(
"The root_link argument is not used. The root link is automatically chosen as the link with no parent in the URDF",
DeprecationWarning,
stacklevel=2,
)

def set_frame_velocity_representation(
self, representation: Representations
Expand Down
6 changes: 5 additions & 1 deletion src/adam/parametric/pytorch/computations_parametric.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ def __init__(
self.urdfstring = urdfstring
self.representation = Representations.MIXED_REPRESENTATION # Default
if root_link is not None:
warnings.warn("The root_link argument is not used. The root link is automatically chosen as the link with no parent in the URDF", DeprecationWarning, stacklevel=2)
warnings.warn(
"The root_link argument is not used. The root link is automatically chosen as the link with no parent in the URDF",
DeprecationWarning,
stacklevel=2,
)

def set_frame_velocity_representation(
self, representation: Representations
Expand Down
7 changes: 5 additions & 2 deletions src/adam/pytorch/computation_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ def __init__(
self.g = gravity
self.funcs = {}
if root_link is not None:
warnings.warn("The root_link argument is not used. The root link is automatically chosen as the link with no parent in the URDF", DeprecationWarning, stacklevel=2)

warnings.warn(
"The root_link argument is not used. The root link is automatically chosen as the link with no parent in the URDF",
DeprecationWarning,
stacklevel=2,
)

def set_frame_velocity_representation(
self, representation: Representations
Expand Down
6 changes: 5 additions & 1 deletion src/adam/pytorch/computations.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ def __init__(
self.NDoF = self.rbdalgos.NDoF
self.g = gravity
if root_link is not None:
warnings.warn("The root_link argument is not used. The root link is automatically chosen as the link with no parent in the URDF", DeprecationWarning, stacklevel=2)
warnings.warn(
"The root_link argument is not used. The root link is automatically chosen as the link with no parent in the URDF",
DeprecationWarning,
stacklevel=2,
)

def set_frame_velocity_representation(
self, representation: Representations
Expand Down

0 comments on commit 9ec786d

Please sign in to comment.