diff --git a/tests/test_BF_CTE.py b/tests/test_BF_CTE.py index 35ed176de3fdbcad8fc9193a3b526c6200a21429..4b3ef74015b99d9fe4d51a51fa8acc26ca248a92 100644 --- a/tests/test_BF_CTE.py +++ b/tests/test_BF_CTE.py @@ -80,7 +80,7 @@ class detModule_coverage(unittest.TestCase): def __init__(self, methodName='runTest'): super(detModule_coverage, self).__init__(methodName) ##self.dataPath = "/public/home/chengliang/CSSOSDataProductsSims/csst-simulation/tests/UNIT_TEST_DATA" ##os.path.join(os.getenv('UNIT_TEST_DATA_ROOT'), 'csst_fz_gc1') - self.dataPath = os.path.join(os.getenv('UNIT_TEST_DATA_ROOT'), 'csst_fz_msc') + self.dataPath = os.path.join(os.getenv('UNIT_TEST_DATA_ROOT'), 'csst_msc_sim/csst_fz_msc') self.iccd = 1 diff --git a/tests/test_PSFmodule.py b/tests/test_PSFmodule.py index de8bf27555161fc96c6c79c9a2f7e978690d054b..c0399aaf0ea9c1e26483ef442a9c41a218115564 100644 --- a/tests/test_PSFmodule.py +++ b/tests/test_PSFmodule.py @@ -39,7 +39,7 @@ def defineFilt(chip): class PSFInterpModule_coverage(unittest.TestCase): def __init__(self, methodName='runTest'): super(PSFInterpModule_coverage, self).__init__(methodName) - self.dataPath = os.path.join(os.getenv('UNIT_TEST_DATA_ROOT'), 'csst_fz_msc') + self.dataPath = os.path.join(os.getenv('UNIT_TEST_DATA_ROOT'), 'csst_msc_sim/csst_fz_msc') self.iccd = 8 def test_loadPSFSet(self): diff --git a/tests/test_darknoise_func.py b/tests/test_darknoise_func.py index 680ce7b1879ac55f3b01a841d22dc99dfbd371ae..92a1e5d36eed4d7639b3c3b362d90e0ad7afaca4 100644 --- a/tests/test_darknoise_func.py +++ b/tests/test_darknoise_func.py @@ -60,7 +60,7 @@ def defineFilt(chip): class detModule_coverage(unittest.TestCase): def __init__(self, methodName='runTest'): super(detModule_coverage, self).__init__(methodName) - self.dataPath = os.path.join(os.getenv('UNIT_TEST_DATA_ROOT'), 'csst_fz_msc') + self.dataPath = os.path.join(os.getenv('UNIT_TEST_DATA_ROOT'), 'csst_msc_sim/csst_fz_msc') self.iccd = 1 def test_add_dark(self): diff --git a/tests/test_imaging.py b/tests/test_imaging.py index 4e41563c6b641eda38960a8e2a38e8003f4c3801..7d1e5226c3b07b9d6534a45e349bf3df473d48d4 100644 --- a/tests/test_imaging.py +++ b/tests/test_imaging.py @@ -97,8 +97,8 @@ def _load_gals(file_path): param['av'] = 0.0 param['redden'] = 0 - pcs = h5.File("/public/share/yangxuliu/CSSOSDataProductsSims/data_50sqDeg/sedlibs/"+"pcs.h5", "r") - lamb = h5.File("/public/share/yangxuliu/CSSOSDataProductsSims/data_50sqDeg/sedlibs/"+"lamb.h5", "r") + pcs = h5.File(os.path.join(os.getenv('UNIT_TEST_DATA_ROOT'), 'csst_msc_sim/csst_fz_msc/sedlibs/pcs.h5'), "r") + lamb = h5.File(os.path.join(os.getenv('UNIT_TEST_DATA_ROOT'), 'csst_msc_sim/csst_fz_msc/sedlibs/lamb.h5'), "r") lamb_gal = lamb['lamb'][()] pcs = pcs['pcs'][()] @@ -158,7 +158,7 @@ def defineFilt(chip): class imagingModule_coverage(unittest.TestCase): def __init__(self, methodName='runTest'): super(imagingModule_coverage, self).__init__(methodName) - self.dataPath = "/public/home/chengliang/CSSOSDataProductsSims/csst-simulation/tests/UNIT_TEST_DATA" ##os.path.join(os.getenv('UNIT_TEST_DATA_ROOT'), 'csst_fz_gc1') + self.dataPath = os.path.join(os.getenv('UNIT_TEST_DATA_ROOT'), 'csst_msc_sim/csst_fz_msc') self.iccd = 8 def test_imaging(self): @@ -170,7 +170,7 @@ class imagingModule_coverage(unittest.TestCase): print(chip.cen_pix_x, chip.cen_pix_y) - obj = _load_gals("UNIT_TEST_DATA/galaxies_C6_bundle000287.h5") + obj = _load_gals(os.path.join(self.dataPath, 'galaxies_C6_bundle000287.h5')) #("UNIT_TEST_DATA/galaxies_C6_bundle000287.h5") sed_data = obj['sed'] norm_filt = None diff --git a/tests/test_prescan_overscan_func.py b/tests/test_prescan_overscan_func.py index f3b17576c4a51573107939877a46e931476adad3..1a6a1303edc31c8b8482037f1d17248cfc7af11e 100644 --- a/tests/test_prescan_overscan_func.py +++ b/tests/test_prescan_overscan_func.py @@ -81,7 +81,7 @@ def defineFilt(chip): class detModule_coverage(unittest.TestCase): def __init__(self, methodName='runTest'): super(detModule_coverage, self).__init__(methodName) - self.dataPath = os.path.join(os.getenv('UNIT_TEST_DATA_ROOT'), 'csst_fz_msc') + self.dataPath = os.path.join(os.getenv('UNIT_TEST_DATA_ROOT'), 'csst_msc_sim/csst_fz_msc') self.iccd = 1 def test_add_prescan_overscan(self):