Skip to content

Commit

Permalink
Skip AD integration test for ergoCub reduced model
Browse files Browse the repository at this point in the history
Until google-deepmind/optax#1190 gets included in a release
  • Loading branch information
flferretti authored Feb 25, 2025
1 parent bb754c5 commit f17e9d4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_automatic_differentiation.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import jax
import jax.numpy as jnp
import numpy as np
import optax
import pytest
from jax.test_util import check_grads

import jaxsim.api as js
Expand Down Expand Up @@ -295,6 +297,11 @@ def test_ad_integration(

model = jaxsim_models_types

# TODO: Remove when https://github.com/google-deepmind/optax/pull/1190 is included in a release.
# Skip if `optax` version is less or equal to "0.2.4" and the model is ergoCub.
if model.name() == "ergoCub" and optax.__version__ <= "0.2.4":
pytest.skip("Skipping ergoCub model with optax version <= 0.2.4.")

_, subkey = jax.random.split(prng_key, num=2)
data, references = get_random_data_and_references(
model=model, velocity_representation=VelRepr.Inertial, key=subkey
Expand Down

0 comments on commit f17e9d4

Please sign in to comment.