From bee771795ed5364203f55f3c6953fcd58c118a25 Mon Sep 17 00:00:00 2001 From: fangyuedong Date: Tue, 4 Jul 2023 07:27:51 +0800 Subject: [PATCH] remove option to use extra shear catalog --- ObservationSim/ObservationSim.py | 3 +-- profile_C6.sh | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ObservationSim/ObservationSim.py b/ObservationSim/ObservationSim.py index 9f852ba..05e77fc 100755 --- a/ObservationSim/ObservationSim.py +++ b/ObservationSim/ObservationSim.py @@ -68,8 +68,7 @@ class Observation(object): chip_output.Log_error("unrecognized PSF model type!!", flush=True) # Figure out shear fields - if shear_cat_file is not None: - self.g1_field, self.g2_field, self.nshear = get_shear_field(config=self.config, shear_cat_file=shear_cat_file) + self.g1_field, self.g2_field, self.nshear = get_shear_field(config=self.config, shear_cat_file=shear_cat_file) # Apply astrometric simulation for pointing if self.config["obs_setting"]["enable_astrometric_model"]: diff --git a/profile_C6.sh b/profile_C6.sh index d21ea74..a64e6a3 100755 --- a/profile_C6.sh +++ b/profile_C6.sh @@ -3,10 +3,10 @@ date python -m cProfile -o C6_profiler_test.pstats /share/home/fangyuedong/csst-simulation/run_sim.py \ - --config_file config_C6_test_wcs.yaml \ - --catalog wcs_test_C6 \ + --config_file config_C6.yaml \ + --catalog C6_Catalog \ -c /share/home/fangyuedong/csst-simulation/config # --config_file test_fd_C6.yaml \ # --catalog fd_test_C6 \ - # --config_file config_C6.yaml \ - # --catalog C6_Catalog \ + # --config_file config_C6_test_wcs.yaml \ + # --catalog wcs_test_C6 \ -- GitLab