Loading csst_common/data_manager.py +12 −6 Original line number Original line Diff line number Diff line Loading @@ -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="") Loading Loading
csst_common/data_manager.py +12 −6 Original line number Original line Diff line number Diff line Loading @@ -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="") Loading