From e5799408d550852a06c59bf416d30ea7611854b4 Mon Sep 17 00:00:00 2001 From: BO ZHANG Date: Thu, 29 Jun 2023 17:14:25 +0800 Subject: [PATCH] fixed version --- csst_common/data_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csst_common/data_manager.py b/csst_common/data_manager.py index 6bb884f..a767c00 100644 --- a/csst_common/data_manager.py +++ b/csst_common/data_manager.py @@ -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): -- GitLab