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

added clear_l1 option

parent 7ca7ea78
......@@ -608,7 +608,8 @@ class CsstMsDataManager:
dir_l0="/L1Pipeline/L0",
dir_l1="/L1Pipeline/L1",
use_dfs=True,
dfs_node="pml"
dfs_node="pml",
clear_l1=False,
):
""" Initialize CsstMsDataManager from DFS. """
# (clear and) make directories
......@@ -623,6 +624,8 @@ class CsstMsDataManager:
# os.chdir(dir_l1)
if not os.path.exists(dir_l1):
os.mkdir(dir_l1)
elif clear_l1:
os.system(f"rm -rf {dir_l1}/*")
os.chdir(dir_l1)
print(f"Query obs_id={obs_id} ...", end="")
......
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