Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions jax_galsim/fitswcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,16 +834,16 @@ def __eq__(self, other):
and jnp.array_equal(self.cd, other.cd)
and self.center == other.center
and (
jnp.array_equal(self.pv, other.pv)
or (self.pv is None and other.pv is None)
(self.pv is None and other.pv is None)
or jnp.array_equal(self.pv, other.pv)
)
and (
jnp.array_equal(self.ab, other.ab)
or (self.ab is None and other.ab is None)
(self.ab is None and other.ab is None)
or jnp.array_equal(self.ab, other.ab)
)
and (
jnp.array_equal(self.abp, other.abp)
or (self.abp is None and other.abp is None)
(self.abp is None and other.abp is None)
or jnp.array_equal(self.abp, other.abp)
)
)

Expand Down
2 changes: 1 addition & 1 deletion jax_galsim/integ.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def int1d(
@jax.jit
def _func(x):
rdt = jax.ShapeDtypeStruct(x.shape, x.dtype)
return jax.pure_callback(func, rdt, x)
return jax.pure_callback(func, rdt, x, vmap_method="sequential")
else:
_func = func

Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ readme = "README.md"
dependencies = [
"numpy >=1.18.0",
"galsim >=2.3.0",
"jax <0.7.0",
"jaxlib",
"jax >=0.8.0",
"astropy >=2.0",
"tensorflow-probability >=0.21.0",
"tfp-nightly",
"quadax",
]

Expand Down
Loading