Commit 8112e880 authored by Yan Zhaojun's avatar Yan Zhaojun
Browse files

test

parent 58aba344
Pipeline #4022 failed with stage
in 0 seconds
......@@ -1576,13 +1576,13 @@ class MCIsimulator():
self.filter_psf=dict()
filtername=self.filter_g
self.filter_psf['g']=np.load(information['dir_path']+'MCI_inputData/PSF/'+filtername+'_PSF.npy', allow_pickle=True).item()
self.filter_psf['g']=np.load(self.information['dir_path']+'MCI_inputData/PSF/'+filtername+'_PSF.npy', allow_pickle=True).item()
filtername=self.filter_r
self.filter_psf['r']=np.load(information['dir_path']+'MCI_inputData/PSF/'+filtername+'_PSF.npy', allow_pickle=True).item()
self.filter_psf['r']=np.load(self.information['dir_path']+'MCI_inputData/PSF/'+filtername+'_PSF.npy', allow_pickle=True).item()
filtername=self.filter_i
self.filter_psf['i']=np.load(information['dir_path']+'MCI_inputData/PSF/'+filtername+'_PSF.npy', allow_pickle=True).item()
self.filter_psf['i']=np.load(self.information['dir_path']+'MCI_inputData/PSF/'+filtername+'_PSF.npy', allow_pickle=True).item()
return
......@@ -5607,6 +5607,8 @@ def runMCIsim(sourcein,configfile,dir_path,iLoop):
sim[iLoop].information['dir_path'] = dir_path
print('sim.information dir_path', dir_path)
sim[iLoop].simulate(iLoop)
return
......
......@@ -47,6 +47,7 @@ class TestDemoFunction(unittest.TestCase):
print(configfile)
csst_mci_sim.runMCIsim(sourcein, configfile, dir_path, 1)
self.assertEqual(
0 , 1,
"case 1: SCI sim passes.",
......
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