Skip to content

Commit 2e2aaca

Browse files
committed
fix: use array in transform, not image
1 parent 7963c1f commit 2e2aaca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jax_galsim/interpolatedimage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,8 @@ def __init__(
515515
)
516516

517517
if calculate_stepk or calculate_maxk or flux is not None:
518-
image = equinox.error_if(
519-
image,
518+
image.array = equinox.error_if(
519+
image.array,
520520
image.array.sum() == 0.0,
521521
"This input image has zero total flux. It does not define a "
522522
"valid surface brightness profile.",

0 commit comments

Comments
 (0)