Commit a197ecc8 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

make dm.l1_detector compatible with C5.2

parent 5fbbd1f9
......@@ -517,8 +517,12 @@ class CsstMsDataManager:
"""
assert detector in self.available_detectors
fn = f"{self.telescope}_{self.instrument}_{self.project}_{self.obs_type}_{self.exp_start}_{self.exp_stop}_" \
f"{self.obs_id}_{detector:02d}_L1_V{self.version}_{post}"
if self.ver_sim == "C5.2":
fn = f"{self.telescope}_{self.instrument}_{self.project}_{self.obs_type}_{self.exp_start}_{self.exp_stop}_" \
f"{self.obs_id}_{detector:02d}_{post}"
else:
fn = f"{self.telescope}_{self.instrument}_{self.project}_{self.obs_type}_{self.exp_start}_{self.exp_stop}_" \
f"{self.obs_id}_{detector:02d}_L1_V{self.version}_{post}"
return os.path.join(self.dir_l1, fn)
def get_bias(self, detector=6):
......
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