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

deleted usages of dm.set_detectors()

parent b68b1d88
......@@ -17,10 +17,12 @@ from csst_common.params import CSST_PARAMS as CP
class TestCsstMsDataManager(unittest.TestCase):
def setUp(self) -> None:
self.dm_mbi = CsstMsDataManager.quickstart(ver_sim="C5.2", datatype="mbi", dir_l1=".", exposure_id=100)
self.dm_sls = CsstMsDataManager.quickstart(ver_sim="C5.2", datatype="sls", dir_l1=".", exposure_id=100)
self.dm_mbi.set_detectors(detectors=None)
self.dm_sls.set_detectors(detectors=None)
self.dm_mbi = CsstMsDataManager.quickstart(
ver_sim="C5.2", datatype="mbi", dir_l1=".", exposure_id=100, dfs_mode=False, dfs_node="kmust")
self.dm_sls = CsstMsDataManager.quickstart(
ver_sim="C5.2", datatype="sls", dir_l1=".", exposure_id=100, dfs_mode=False, dfs_node="kmust")
self.dm_mbi.target_detectors = None
self.dm_sls.target_detectors = None
def test_mbi_data_existence(self):
self.assertTrue(self.dm_mbi.available_detectors == CP["mbi"]["detectors"])
......
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