Loading csst_ifs_sim/csst_ifs_sim.py +9 −6 Original line number Diff line number Diff line Loading @@ -1934,7 +1934,7 @@ class IFSsimulator(): ############################################################################### ############################################################################### def configure(self, simnumber): def configure(self, simnumber,dir_path, result_path): """ Loading @@ -1959,6 +1959,10 @@ class IFSsimulator(): self._createEmpty() self.information['dir_path']=dir_path self.information['result_path']=result_path ############################################################ now = datetime.utcnow() Loading Loading @@ -1992,6 +1996,7 @@ class IFSsimulator(): self.result_path= self.information['result_path']+'/'+self.source+ss+result_day print(self.information['result_path']) if os.path.isdir(self.result_path) == False: os.mkdir(self.result_path) Loading Loading @@ -5456,7 +5461,7 @@ class IFSsimulator(): self.source = sourcein self.simnumber = simnumber self.configure(simnumber) # print the configfile name and path; self.configure(simnumber,dir_path,result_path)) # print the configfile name and path; self.debug = self.information['debug'] Loading Loading @@ -5763,8 +5768,6 @@ def runIFSsim(sourcein, configfile, dir_path, result_path,iLoop, debug, applyhol simulate[iLoop].information['result_path'] = result_path simulate[iLoop].simulate(sourcein, iLoop) return 1 Loading tests/test_ifs_sim.py +3 −0 Original line number Diff line number Diff line Loading @@ -155,9 +155,11 @@ class TestDemoFunction(unittest.TestCase): print(configfile) debug=True result_path=dir_path+'ifs_sim_result' csst_ifs_sim.runIFSsim(sourcein, configfile, dir_path, result_path, 1, debug,'no') self.assertEqual( 1 , 1, "case 4: sim passes.", Loading Loading @@ -227,6 +229,7 @@ class TestDemoFunction(unittest.TestCase): print(configfile) debug=True result_path=dir_path+'ifs_sim_result' csst_ifs_sim.runIFSsim(sourcein, configfile, dir_path, result_path, 1, debug,'no') Loading Loading
csst_ifs_sim/csst_ifs_sim.py +9 −6 Original line number Diff line number Diff line Loading @@ -1934,7 +1934,7 @@ class IFSsimulator(): ############################################################################### ############################################################################### def configure(self, simnumber): def configure(self, simnumber,dir_path, result_path): """ Loading @@ -1959,6 +1959,10 @@ class IFSsimulator(): self._createEmpty() self.information['dir_path']=dir_path self.information['result_path']=result_path ############################################################ now = datetime.utcnow() Loading Loading @@ -1992,6 +1996,7 @@ class IFSsimulator(): self.result_path= self.information['result_path']+'/'+self.source+ss+result_day print(self.information['result_path']) if os.path.isdir(self.result_path) == False: os.mkdir(self.result_path) Loading Loading @@ -5456,7 +5461,7 @@ class IFSsimulator(): self.source = sourcein self.simnumber = simnumber self.configure(simnumber) # print the configfile name and path; self.configure(simnumber,dir_path,result_path)) # print the configfile name and path; self.debug = self.information['debug'] Loading Loading @@ -5763,8 +5768,6 @@ def runIFSsim(sourcein, configfile, dir_path, result_path,iLoop, debug, applyhol simulate[iLoop].information['result_path'] = result_path simulate[iLoop].simulate(sourcein, iLoop) return 1 Loading
tests/test_ifs_sim.py +3 −0 Original line number Diff line number Diff line Loading @@ -155,9 +155,11 @@ class TestDemoFunction(unittest.TestCase): print(configfile) debug=True result_path=dir_path+'ifs_sim_result' csst_ifs_sim.runIFSsim(sourcein, configfile, dir_path, result_path, 1, debug,'no') self.assertEqual( 1 , 1, "case 4: sim passes.", Loading Loading @@ -227,6 +229,7 @@ class TestDemoFunction(unittest.TestCase): print(configfile) debug=True result_path=dir_path+'ifs_sim_result' csst_ifs_sim.runIFSsim(sourcein, configfile, dir_path, result_path, 1, debug,'no') Loading