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

fixed version

parent b37ec6e3
......@@ -1049,10 +1049,10 @@ class CsstMsFile(dict):
def fpo(self, post=".fits"):
if post.startswith("."):
fn = f"{self.telescope}_{self.instrument}_{self.project}_{self.obs_type}_{self.exp_start}_{self.exp_stop}_" \
f"{self.obs_id}_{self.detector}_L1_V{self.version}{post}"
f"{self.obs_id}_{self.detector}_L1_V{self.version:02d}{post}"
else:
fn = f"{self.telescope}_{self.instrument}_{self.project}_{self.obs_type}_{self.exp_start}_{self.exp_stop}_" \
f"{self.obs_id}_{self.detector}_L1_V{self.version}_{post}"
f"{self.obs_id}_{self.detector}_L1_V{self.version:02d}_{post}"
return os.path.join(self.dir_out, fn)
def fpi(self):
......
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