Skip to content

Commit

Permalink
When using JAX don't import Numpy
Browse files Browse the repository at this point in the history
Switches out `numpy` for `jax.numpy`.
  • Loading branch information
CKrawczyk committed Jun 28, 2024
1 parent 7f0bcec commit 044febb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion autogalaxy/profiles/geometry_profiles.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import os

from typing import Optional, Tuple, Type

import numpy as np
if os.environ.get("USE_JAX", "0") == "1":
import jax.numpy as np
else:
import numpy as np

import autoarray as aa

Expand Down

0 comments on commit 044febb

Please sign in to comment.