Skip to content

Commit

Permalink
Fix max_squarings argument of visco-elastic contact model
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Oct 9, 2024
1 parent 847a600 commit ed2b8b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jaxsim/rbda/contacts/visco_elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class ViscoElasticContacts(common.ContactModel):
default_factory=FlatTerrain
)

max_squarings: jax_dataclasses.Static[int] = 25
max_squarings: jax_dataclasses.Static[int] = dataclasses.field(default=25)

@classmethod
def build(
Expand Down Expand Up @@ -239,7 +239,7 @@ def build(
parameters=parameters,
terrain=terrain or cls.__dataclass_fields__["terrain"].default_factory(),
max_squarings=int(
max_squarings or cls.__dataclass_fields__["max_squarings"].default()
max_squarings or cls.__dataclass_fields__["max_squarings"].default
),
)

Expand Down

0 comments on commit ed2b8b3

Please sign in to comment.