Loading csst_common/data_manager.py +5 −6 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ from astropy.table import Table from .dfs import gaia_query_from_dfs, get_l1api from .params import CSST_PARAMS as CP from .params import DFS_CONF from .utils import remove_files, remove_dir from .utils import remove_dir class CsstMsDataManager: Loading Loading @@ -514,9 +514,8 @@ class CsstMsDataManager: lines += f"CSST_DFS_GATEWAY = " + os.getenv("CSST_DFS_GATEWAY") + "\n" return lines @staticmethod def remove_files(fmt="./*_post.fits"): remove_files(fmt=fmt) def remove_files(self, fmt="*.fits"): os.system(f"rm -rf {os.path.join(self.dir_l1, fmt)}") @staticmethod def remove_dir(path): Loading Loading
csst_common/data_manager.py +5 −6 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ from astropy.table import Table from .dfs import gaia_query_from_dfs, get_l1api from .params import CSST_PARAMS as CP from .params import DFS_CONF from .utils import remove_files, remove_dir from .utils import remove_dir class CsstMsDataManager: Loading Loading @@ -514,9 +514,8 @@ class CsstMsDataManager: lines += f"CSST_DFS_GATEWAY = " + os.getenv("CSST_DFS_GATEWAY") + "\n" return lines @staticmethod def remove_files(fmt="./*_post.fits"): remove_files(fmt=fmt) def remove_files(self, fmt="*.fits"): os.system(f"rm -rf {os.path.join(self.dir_l1, fmt)}") @staticmethod def remove_dir(path): Loading