Commit 134f78c0 authored by Zhang Xin's avatar Zhang Xin
Browse files

Galaxy spec lost pos parameter

parent 1ca08d23
...@@ -327,7 +327,7 @@ class Galaxy(MockObject): ...@@ -327,7 +327,7 @@ class Galaxy(MockObject):
pos_shear = self.addSLStoChipImageWithPSF(sdp=sdp_p1, chip=chip, pos_img_local=[xcenter_p1, ycenter_p1], pos_shear = self.addSLStoChipImageWithPSF(sdp=sdp_p1, chip=chip, pos_img_local=[xcenter_p1, ycenter_p1],
psf_model=psf_model, bandNo=i + 1, psf_model=psf_model, bandNo=i + 1,
grating_split_pos=grating_split_pos, grating_split_pos=grating_split_pos,
local_wcs=chip_wcs_local) local_wcs=chip_wcs_local, pos_img = pos_img)
subImg_p2 = starImg.array[:, subSlitPos+1:starImg.array.shape[1]] subImg_p2 = starImg.array[:, subSlitPos+1:starImg.array.shape[1]]
star_p2 = galsim.Image(subImg_p2) star_p2 = galsim.Image(subImg_p2)
...@@ -348,7 +348,7 @@ class Galaxy(MockObject): ...@@ -348,7 +348,7 @@ class Galaxy(MockObject):
pos_shear = self.addSLStoChipImageWithPSF(sdp=sdp_p2, chip=chip, pos_img_local=[xcenter_p2, ycenter_p2], pos_shear = self.addSLStoChipImageWithPSF(sdp=sdp_p2, chip=chip, pos_img_local=[xcenter_p2, ycenter_p2],
psf_model=psf_model, bandNo=i + 1, psf_model=psf_model, bandNo=i + 1,
grating_split_pos=grating_split_pos, grating_split_pos=grating_split_pos,
local_wcs=chip_wcs_local) local_wcs=chip_wcs_local, pos_img = pos_img)
del sdp_p1 del sdp_p1
del sdp_p2 del sdp_p2
...@@ -364,7 +364,7 @@ class Galaxy(MockObject): ...@@ -364,7 +364,7 @@ class Galaxy(MockObject):
pos_shear = self.addSLStoChipImageWithPSF(sdp=sdp, chip=chip, pos_img_local=[x_nominal, y_nominal], pos_shear = self.addSLStoChipImageWithPSF(sdp=sdp, chip=chip, pos_img_local=[x_nominal, y_nominal],
psf_model=psf_model, bandNo=i + 1, psf_model=psf_model, bandNo=i + 1,
grating_split_pos=grating_split_pos, grating_split_pos=grating_split_pos,
local_wcs=chip_wcs_local) local_wcs=chip_wcs_local, pos_img = pos_img)
del sdp del sdp
elif grating_split_pos_chip>=gal_end[1]: elif grating_split_pos_chip>=gal_end[1]:
sdp = SpecDisperser(orig_img=starImg, xcenter=x_nominal - 0, sdp = SpecDisperser(orig_img=starImg, xcenter=x_nominal - 0,
...@@ -378,7 +378,7 @@ class Galaxy(MockObject): ...@@ -378,7 +378,7 @@ class Galaxy(MockObject):
pos_shear = self.addSLStoChipImageWithPSF(sdp=sdp, chip=chip, pos_img_local=[x_nominal, y_nominal], pos_shear = self.addSLStoChipImageWithPSF(sdp=sdp, chip=chip, pos_img_local=[x_nominal, y_nominal],
psf_model=psf_model, bandNo=i + 1, psf_model=psf_model, bandNo=i + 1,
grating_split_pos=grating_split_pos, grating_split_pos=grating_split_pos,
local_wcs=chip_wcs_local) local_wcs=chip_wcs_local, pos_img = pos_img)
del sdp del sdp
# print(self.y_nominal, starImg.center.y, starImg.ymin) # print(self.y_nominal, starImg.center.y, starImg.ymin)
......
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