Commit 87c7e8fd authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

do not clear dir_l1 in this stage

parent a6340265
...@@ -579,18 +579,24 @@ class CsstMsDataManager: ...@@ -579,18 +579,24 @@ class CsstMsDataManager:
pass pass
@staticmethod @staticmethod
def from_dfs(obs_id="100000100", datatype="mbi", dir_l0="/L1Pipeline/L0", dir_l1="/L1Pipeline/L1", def from_dfs(
dfs_mode=True, dfs_node="pml"): obs_id="100000100",
datatype="mbi",
dir_l0="/L1Pipeline/L0",
dir_l1="/L1Pipeline/L1",
dfs_mode=True,
dfs_node="pml"
):
""" Initialize CsstMsDataManager from DFS. """ """ Initialize CsstMsDataManager from DFS. """
# (clear and) make directories # (clear and) make directories
if os.path.exists(dir_l0): if os.path.exists(dir_l0):
os.system(f"rm -rf {dir_l0}/*") os.system(f"rm -rf {dir_l0}/*")
else: else:
os.mkdir(dir_l0) os.mkdir(dir_l0)
if os.path.exists(dir_l1): # if os.path.exists(dir_l1):
os.system(f"rm -rf {dir_l1}/*") # os.system(f"rm -rf {dir_l1}/*")
else: # else:
os.mkdir(dir_l1) # os.mkdir(dir_l1)
os.chdir(dir_l1) os.chdir(dir_l1)
print(f"Query obs_id={obs_id} ...", end="") 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