From 469c08f8f34dd667d69bff6a40889248a20cbfd1 Mon Sep 17 00:00:00 2001 From: BO ZHANG Date: Sun, 6 Nov 2022 21:49:06 +0800 Subject: [PATCH] tweaks --- csst_common/data_manager.py | 4 ++-- csst_common/utils/_io.py | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/csst_common/data_manager.py b/csst_common/data_manager.py index f48c62d..035081f 100644 --- a/csst_common/data_manager.py +++ b/csst_common/data_manager.py @@ -252,8 +252,8 @@ class CsstMsDataManager: # parse info _telescope, _instrument, _survey, _imagetype, \ - _exp_start, _exp_stop, _exp_id, \ - _detector, *_l0_post, _ext = re.split(r"[_.]", fps_img[0]) + _exp_start, _exp_stop, _exp_id, \ + _detector, *_l0_post, _ext = re.split(r"[_.]", fps_img[0]) _exp_start = int(_exp_start) _exp_stop = int(_exp_stop) diff --git a/csst_common/utils/_io.py b/csst_common/utils/_io.py index fe8ddfe..a459299 100644 --- a/csst_common/utils/_io.py +++ b/csst_common/utils/_io.py @@ -13,7 +13,3 @@ def remove_dir(path=""): """ Remove the specified directory. """ if os.path.exists(path): shutil.rmtree(path) - - - - -- GitLab