diff --git a/galsim/gsobject.py b/galsim/gsobject.py index 3f17dc4bbe..4be5872097 100644 --- a/galsim/gsobject.py +++ b/galsim/gsobject.py @@ -1164,6 +1164,7 @@ def _setup_image(self, image, nx, ny, bounds, add_to_image, dtype, center, odd=F "Must set either both or neither of nx, ny", nx=nx, ny=ny) image = Image(nx, ny, dtype=dtype) if center is not None: + # Note: this needs to match the corresponding calculation in _get_new_bounds image.shift(_PositionI(np.floor(center.x+0.5-image.true_center.x), np.floor(center.y+0.5-image.true_center.y))) else: