Skip to content

Commit 4703099

Browse files
committed
fix: bool conversion in pos comp
1 parent 1bf4a5d commit 4703099

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jax_galsim/gsobject.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,8 +1059,8 @@ def drawKImage(
10591059
# Can't both recenter a provided image and add to it.
10601060
if recenter and add_to_image:
10611061
zp = PositionI(0, 0)
1062-
equinox.error_if(
1063-
zp.x,
1062+
zp.x = equinox.error_if(
1063+
jnp.array(zp.x, dtype=int),
10641064
image.center != zp,
10651065
"Cannot use add_to_image=True unless image is centered at (0,0) or recenter=False",
10661066
)

0 commit comments

Comments
 (0)