Commit 4b3d2a9b authored by Fang Yuedong's avatar Fang Yuedong
Browse files

Merge branch 'customizable_catalog' of...

Merge branch 'customizable_catalog' of ssh://119.78.210.97:31415/data/simudata/CSSOSDataProductsSims/codes/CSST into customizable_catalog
parents 5bfb77d7 e1d1ebda
Loading
Loading
Loading
Loading
+63 −60
Original line number Diff line number Diff line
@@ -239,7 +239,8 @@ class Observation(object):
                try:
                    if self.config["run_option"]["out_cat_only"]:
                        isUpdated = True
                    if chip.survey_type == "photometric" and not self.config["run_option"]["out_cat_only"]:
                        pos_shear = 0.
                    elif chip.survey_type == "photometric" and not self.config["run_option"]["out_cat_only"]:
                        isUpdated, pos_shear = obj.drawObj_multiband(
                            tel=self.tel,
                            pos_img=pos_img, 
@@ -289,6 +290,8 @@ class Observation(object):
        # Detector Effects
        # ===========================================================
        # whether to output zero, dark, flat calibration images.

        if not self.config["run_option"]["out_cat_only"]:
            chip.img = chip.addEffects(
                config=self.config, 
                img=chip.img,