Skip to content

Commit

Permalink
Merge pull request ami-iit#55 from ami-iit/fix/jaxsim_static_fields
Browse files Browse the repository at this point in the history
Make all fields of `simulator.JaxSim` static excluding `SimulatorData`
  • Loading branch information
diegoferigo authored Oct 24, 2023
2 parents e9bb166 + 0d59772 commit 804d525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jaxsim/simulation/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class JaxSim(Vmappable):
"""The JaxSim simulator."""

# Step size stored in ns in order to prevent floats approximation
step_size_ns: jtp.Int = dataclasses.field(
step_size_ns: Static[jtp.Int] = dataclasses.field(
default_factory=lambda: jnp.array(1_000_000, dtype=jnp.uint64)
)

Expand Down

0 comments on commit 804d525

Please sign in to comment.