Skip to content

Commit 58196ca

Browse files
committed
fix: ensure repr of image prints even with tracers
1 parent 2e2aaca commit 58196ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jax_galsim/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def _get_xmin_ymin(array, kwargs, check_bounds=True):
326326

327327
def __repr__(self):
328328
s = "galsim.Image(bounds=%r" % self.bounds
329-
if self.bounds.isDefined():
329+
if self.bounds.isDefined() and not has_tracers(self.array):
330330
s += ", array=\n%r" % (ensure_hashable(np.array(self.array)),)
331331
s += ", wcs=%r" % self.wcs
332332
if self.isconst:

0 commit comments

Comments
 (0)