Commit de26bef0 authored by Wei Chengliang's avatar Wei Chengliang
Browse files

bug fixes: change galsim.drawImage method to no_pixel

parent 07f72bde
Pipeline #7367 failed with stage
in 0 seconds
...@@ -201,7 +201,7 @@ class Galaxy(MockObject): ...@@ -201,7 +201,7 @@ class Galaxy(MockObject):
# gal = self.bfrac * bulge + (1.0 - self.bfrac - kfrac) * disk + kfrac * knots # gal = self.bfrac * bulge + (1.0 - self.bfrac - kfrac) * disk + kfrac * knots
# stamp = gal.drawImage(wcs=chip_wcs_local, method='phot', offset=offset, save_photons=True) # stamp = gal.drawImage(wcs=chip_wcs_local, method='phot', offset=offset, save_photons=True)
stamp = gal.drawImage(wcs=chip_wcs_local, offset=offset) stamp = gal.drawImage(method='no_pixel', wcs=chip_wcs_local, offset=offset)
if np.sum(np.isnan(stamp.array)) > 0: if np.sum(np.isnan(stamp.array)) > 0:
# ERROR happens # ERROR happens
return 2, pos_shear return 2, pos_shear
......
...@@ -92,7 +92,7 @@ class Stamp(MockObject): ...@@ -92,7 +92,7 @@ class Stamp(MockObject):
else: else:
gal = gal + gal_temp gal = gal + gal_temp
stamp = gal.drawImage(wcs=chip_wcs_local, offset=offset) stamp = gal.drawImage(method='no_pixel', wcs=chip_wcs_local, offset=offset)
if np.sum(np.isnan(stamp.array)) > 0: if np.sum(np.isnan(stamp.array)) > 0:
# ERROR happens # ERROR happens
return 2, pos_shear return 2, pos_shear
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment