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

tweaks

parent ae76b978
...@@ -544,7 +544,7 @@ class CsstMsDataManager: ...@@ -544,7 +544,7 @@ class CsstMsDataManager:
fp = os.path.join( fp = os.path.join(
self.path_aux, self.path_aux,
"C6.2_ref_crds", "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): if not os.path.exists(fp):
raise FileNotFoundError(fp) raise FileNotFoundError(fp)
...@@ -556,7 +556,7 @@ class CsstMsDataManager: ...@@ -556,7 +556,7 @@ class CsstMsDataManager:
fp = os.path.join( fp = os.path.join(
self.path_aux, self.path_aux,
"C6.2_ref_crds", "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): if not os.path.exists(fp):
raise FileNotFoundError(fp) raise FileNotFoundError(fp)
...@@ -568,7 +568,7 @@ class CsstMsDataManager: ...@@ -568,7 +568,7 @@ class CsstMsDataManager:
fp = os.path.join( fp = os.path.join(
self.path_aux, self.path_aux,
"C6.2_ref_crds", "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): if not os.path.exists(fp):
raise FileNotFoundError(fp) raise FileNotFoundError(fp)
...@@ -580,15 +580,15 @@ class CsstMsDataManager: ...@@ -580,15 +580,15 @@ class CsstMsDataManager:
fp = os.path.join( fp = os.path.join(
self.path_aux, self.path_aux,
"C6.2_ref_crds", "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): if not os.path.exists(fp):
raise FileNotFoundError(fp) raise FileNotFoundError(fp)
else: else:
return fp return fp
def get_axeconf(self): # def get_axeconf(self):
return os.path.join(self.path_aux, "axeconf") # "/home/csstpipeline/L1Pipeline/aux/axeconf" # return os.path.join(self.path_aux, "axeconf") # "/home/csstpipeline/L1Pipeline/aux/axeconf"
def l1_file(self, name="", comment=""): def l1_file(self, name="", comment=""):
""" L1 file path """ L1 file path
......
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