Commit 9e339148 authored by Wei Chengliang's avatar Wei Chengliang
Browse files

reset drawImage method to default

parent 0b6e5b12
Pipeline #9226 failed with stage
in 0 seconds
......@@ -172,7 +172,10 @@ class MockObject(object):
# star = galsim.Convolve(psf, star)
star = psf.withFlux(nphotons)
stamp = star.drawImage(method='no_pixel', wcs=chip_wcs_local, offset=offset)
if EXTRA == True:
stamp = star.drawImage(method='no_pixel', wcs=chip_wcs_local, offset=offset)
else:
stamp = star.drawImage(wcs=chip_wcs_local, offset=offset)
if np.sum(np.isnan(stamp.array)) > 0:
continue
stamp.setCenter(x_nominal, y_nominal)
......
......@@ -92,7 +92,7 @@ class Stamp(MockObject):
else:
gal = gal + gal_temp
stamp = gal.drawImage(method='no_pixel', wcs=chip_wcs_local, offset=offset)
stamp = gal.drawImage(wcs=chip_wcs_local, offset=offset)
if np.sum(np.isnan(stamp.array)) > 0:
# ERROR happens
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