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

fix bug with cat_out_only option

parent b0fc6421
...@@ -239,6 +239,7 @@ class Observation(object): ...@@ -239,6 +239,7 @@ class Observation(object):
try: try:
if self.config["run_option"]["out_cat_only"]: if self.config["run_option"]["out_cat_only"]:
isUpdated = True isUpdated = True
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(
tel=self.tel, tel=self.tel,
...@@ -289,6 +290,8 @@ class Observation(object): ...@@ -289,6 +290,8 @@ class Observation(object):
# Detector Effects # Detector Effects
# =========================================================== # ===========================================================
# whether to output zero, dark, flat calibration images. # whether to output zero, dark, flat calibration images.
if not self.config["run_option"]["out_cat_only"]:
chip.img = chip.addEffects( chip.img = chip.addEffects(
config=self.config, config=self.config,
img=chip.img, img=chip.img,
......
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