Skip to content

Commit e1ed489

Browse files
committed
Also one the other direction
(#1322)
1 parent 7b8bddb commit e1ed489

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

galsim/gsobject.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,7 @@ def _setup_image(self, image, nx, ny, bounds, add_to_image, dtype, center, odd=F
11641164
"Must set either both or neither of nx, ny", nx=nx, ny=ny)
11651165
image = Image(nx, ny, dtype=dtype)
11661166
if center is not None:
1167+
# Note: this needs to match the corresponding calculation in _get_new_bounds
11671168
image.shift(_PositionI(np.floor(center.x+0.5-image.true_center.x),
11681169
np.floor(center.y+0.5-image.true_center.y)))
11691170
else:

0 commit comments

Comments
 (0)