Skip to content

Commit

Permalink
PhotonPooling creates a local WCS with full_image.true_center rather …
Browse files Browse the repository at this point in the history
…than the (0,0) position.
  • Loading branch information
welucas2 committed Nov 20, 2024
1 parent eeb67dc commit d1fe74d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imsim/photon_pooling.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def buildImage(self, config, base, image_num, _obj_num, logger):
photon_ops_cfg = {"photon_ops": base.get("stamp", {}).get("photon_ops", [])}
photon_ops = galsim.config.BuildPhotonOps(photon_ops_cfg, 'photon_ops', base, logger)
offset_adjustment = self.calc_offset_adjustment(full_image.bounds)
local_wcs = base["wcs"].local(galsim.position._PositionD(0., 0.))
local_wcs = base['wcs'].local(full_image.true_center)
for batch_num, batch in enumerate(phot_batches, start=current_photon_batch_num):
if not batch:
continue
Expand Down

0 comments on commit d1fe74d

Please sign in to comment.