Commit 4a604e5f authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

tweaks

parent ae76b978
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -544,7 +544,7 @@ class CsstMsDataManager:
        fp = os.path.join(
            self.path_aux,
            "C6.2_ref_crds",
            "csst_msc_ms_{}_{:02d}_{:04d}.fits".format("bias", detector, 1)
            "csst_msc_ms_{}_{:02d}_{:06d}.fits".format("bias", detector, 1)
        )
        if not os.path.exists(fp):
            raise FileNotFoundError(fp)
@@ -556,7 +556,7 @@ class CsstMsDataManager:
        fp = os.path.join(
            self.path_aux,
            "C6.2_ref_crds",
            "csst_msc_ms_{}_{:02d}_{:04d}.fits".format("dark", detector, 1)
            "csst_msc_ms_{}_{:02d}_{:06d}.fits".format("dark", detector, 1)
        )
        if not os.path.exists(fp):
            raise FileNotFoundError(fp)
@@ -568,7 +568,7 @@ class CsstMsDataManager:
        fp = os.path.join(
            self.path_aux,
            "C6.2_ref_crds",
            "csst_msc_ms_{}_{:02d}_{:04d}.fits".format("ledflat", detector, 1)
            "csst_msc_ms_{}_{:02d}_{:06d}.fits".format("ledflat", detector, 1)
        )
        if not os.path.exists(fp):
            raise FileNotFoundError(fp)
@@ -580,15 +580,15 @@ class CsstMsDataManager:
        fp = os.path.join(
            self.path_aux,
            "C6.2_ref_crds",
            "csst_msc_ms_{}_{:02d}_{:04d}.fits".format("shutter", detector, 1)
            "csst_msc_ms_{}_{:02d}_{:06d}.fits".format("shutter", detector, 1)
        )
        if not os.path.exists(fp):
            raise FileNotFoundError(fp)
        else:
            return fp

    def get_axeconf(self):
        return os.path.join(self.path_aux, "axeconf")  # "/home/csstpipeline/L1Pipeline/aux/axeconf"
    # def get_axeconf(self):
    #     return os.path.join(self.path_aux, "axeconf")  # "/home/csstpipeline/L1Pipeline/aux/axeconf"

    def l1_file(self, name="", comment=""):
        """ L1 file path