Commit b7073b97 authored by Fang Yuedong's avatar Fang Yuedong
Browse files

fix an issue while running the *out_cat_only* mode: real_pos needs to be specified.

parent 62965576
...@@ -295,6 +295,8 @@ class Observation(object): ...@@ -295,6 +295,8 @@ class Observation(object):
# chip_output.logger.info("current filter type: %s"%filt.filter_type) # chip_output.logger.info("current filter type: %s"%filt.filter_type)
if self.config["run_option"]["out_cat_only"]: if self.config["run_option"]["out_cat_only"]:
isUpdated = True isUpdated = True
obj.real_pos = obj.getRealPos(chip.img, global_x=obj.posImg.x, global_y=obj.posImg.y,
img_real_wcs=obj.real_wcs)
pos_shear = 0. pos_shear = 0.
elif chip.survey_type == "photometric" and not self.config["run_option"]["out_cat_only"]: elif chip.survey_type == "photometric" and not self.config["run_option"]["out_cat_only"]:
isUpdated, pos_shear = obj.drawObj_multiband( isUpdated, pos_shear = obj.drawObj_multiband(
......
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