Skip to content

Commit

Permalink
Add assertions to verify reduced model properties in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Dec 12, 2024
1 parent d61d2b1 commit 329163b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_api_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@ def test_model_creation_and_reduction(
# Check that the reduced model maintains the same terrain of the full model.
assert model_full.terrain == model_reduced.terrain

# Check that the reduced model maintains the same contact model of the full model.
assert model_full.contact_model == model_reduced.contact_model

# Check that the reduced model maintains the same integration step of the full model.
assert model_full.time_step == model_reduced.time_step

# Check that the reduced model maintains the same integrator of the full model.
assert model_full.integrator == model_reduced.integrator

# Build the data of the reduced model.
data_reduced = js.data.JaxSimModelData.build(
model=model_reduced,
Expand Down

0 comments on commit 329163b

Please sign in to comment.