We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bf4a5d commit 4703099Copy full SHA for 4703099
1 file changed
jax_galsim/gsobject.py
@@ -1059,8 +1059,8 @@ def drawKImage(
1059
# Can't both recenter a provided image and add to it.
1060
if recenter and add_to_image:
1061
zp = PositionI(0, 0)
1062
- equinox.error_if(
1063
- zp.x,
+ zp.x = equinox.error_if(
+ jnp.array(zp.x, dtype=int),
1064
image.center != zp,
1065
"Cannot use add_to_image=True unless image is centered at (0,0) or recenter=False",
1066
)
0 commit comments