Skip to content

Commit

Permalink
Fixing jax config import (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfm committed Mar 6, 2024
1 parent a0031d2 commit 4a81e4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/exoplanet_core/jax/__init__.py
Expand Up @@ -2,7 +2,7 @@

import logging

from jax.config import config
from jax import config

logger = logging.getLogger(__name__)

Expand All @@ -13,7 +13,7 @@
"already run some jax code.\n"
"You can squash this warning by setting the environment variable "
"'JAX_ENABLE_X64=True' or by running:\n"
">>> from jax.config import config\n"
">>> from jax import config\n"
">>> config.update('jax_enable_x64', True)"
)
config.update("jax_enable_x64", True)
Expand Down

0 comments on commit 4a81e4c

Please sign in to comment.