Commit 3724cd6f authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

compatible with C5.2 naming convention

parent ca4aba09
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -481,6 +481,10 @@ class CsstMsDataManager:
    def l0_crs(self, detector=6):
        """ L0 cosmic ray file path """
        assert detector in self.available_detectors
        if self.ver_sim == "C5.2":
            fn = f"{self.telescope}_{self.instrument}_{self.project}_CRS_{self.exp_start}_{self.exp_stop}_" \
                 f"{self.obs_id}_{detector:02d}_L{self.level}_{self.version}.{self.ext}"
        else:
            fn = f"{self.telescope}_{self.instrument}_{self.project}_CRS_{self.exp_start}_{self.exp_stop}_" \
                 f"{self.obs_id}_{detector:02d}_L{self.level}_V{self.version}.{self.ext}"
        fp = os.path.join(self.dir_l0, fn)