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

remove use_dfs

parent 082956f0
Pipeline #1170 failed with stage
in 0 seconds
......@@ -646,7 +646,7 @@ class CsstMsDataManager:
@staticmethod
def quickstart(
ver_sim="C6.2", datatype="mbi", dir_l1=".", exposure_id=100,
use_dfs=False, dfs_node="kmust", n_jobs=18, backend="multiprocessing"
dfs_node="kmust", n_jobs=18, backend="multiprocessing"
):
"""
Quick dataset generator for tests on dandelion or PML
......@@ -661,8 +661,6 @@ class CsstMsDataManager:
output directory
exposure_id : int
The serial number of the exposure. 20-154 for C5.2.
use_dfs : bool
If True, use DFS.
dfs_node : str
The DFS node. Defaults to "kmust", could be "pml".
n_jobs : int
......@@ -690,7 +688,7 @@ class CsstMsDataManager:
return CsstMsDataManager.from_dir(
ver_sim=ver_sim, datatype=datatype, dir_l0=dir_l0, dir_l1=dir_l1, path_aux=path_aux,
use_dfs=use_dfs, dfs_node=dfs_node, n_jobs=n_jobs, backend=backend
dfs_node=dfs_node, n_jobs=n_jobs, backend=backend
)
def __repr__(self):
......
......@@ -21,9 +21,9 @@ dir_unittest = "/nfsdata/share/pipeline-unittest/csst_common"
class TestCsstMsDataManager(unittest.TestCase):
def setUp(self) -> None:
self.dm_mbi = CsstMsDataManager.quickstart(
ver_sim="C6.2", datatype="mbi", dir_l1=dir_unittest, exposure_id=100, use_dfs=False, dfs_node="kmust")
ver_sim="C6.2", datatype="mbi", dir_l1=dir_unittest, exposure_id=100, dfs_node="kmust")
self.dm_sls = CsstMsDataManager.quickstart(
ver_sim="C6.2", datatype="sls", dir_l1=dir_unittest, exposure_id=100, use_dfs=False, dfs_node="kmust")
ver_sim="C6.2", datatype="sls", dir_l1=dir_unittest, exposure_id=100, dfs_node="kmust")
self.dm_mbi.target_detectors = None
self.dm_sls.target_detectors = None
......
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