Skip to content

Commit

Permalink
Merge pull request #92 from ami-iit/flferretti-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti authored Feb 28, 2024
2 parents 389c556 + b5b4f31 commit 6a5040b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jaxsim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
def _jnp_options() -> None:
import os

from jax.config import config
import jax

# Enable by default
if not ("JAX_ENABLE_X64" in os.environ and os.environ["JAX_ENABLE_X64"] == "0"):
logging.info("Enabling JAX to use 64bit precision")
config.update("jax_enable_x64", True)
jax.config.update("jax_enable_x64", True)

import jax.numpy as jnp
import numpy as np
Expand Down

0 comments on commit 6a5040b

Please sign in to comment.