From d0f573ffb8041ac379bd17c70b87d0dcfa5f1174 Mon Sep 17 00:00:00 2001 From: "zhaojunyan@shao.ac.cn" Date: Wed, 15 May 2024 23:44:48 +0800 Subject: [PATCH] test --- csst_mci_sim/csst_mci_sim.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/csst_mci_sim/csst_mci_sim.py b/csst_mci_sim/csst_mci_sim.py index 45a1802..d4c506e 100644 --- a/csst_mci_sim/csst_mci_sim.py +++ b/csst_mci_sim/csst_mci_sim.py @@ -1011,7 +1011,7 @@ class MCIsimulator(): ############################################################################### ############################################################################### - def configure(self,simnumber,sourcein,dir_path): + def configure(self,simnumber,sourcein,dir_path,result_path): """ Configures the simulator with input information and creates and empty array to which the final image will be build on. @@ -1024,6 +1024,8 @@ class MCIsimulator(): self.information['dir_path']=dir_path + self.information['result_path']=result_path + self.source=sourcein ##print('print information:', self.information) @@ -4919,11 +4921,12 @@ def runMCIsim(sourcein,configfile,dir_path, result_path, debug, iLoop): sim= dict() sim[iLoop] = MCIsimulator(configfile) - sim[iLoop].configure(iLoop,sourcein,dir_path) # load the configfile; + sim[iLoop].configure(iLoop,sourcein,dir_path,result_path) # load the configfile; sim[iLoop].information['sourcein'] =sourcein sim[iLoop].information['debug'] =debug - sim[iLoop].information['result_path'] =result_path + sim[iLoop].information['result_path'] = result_path + sim[iLoop].simulate(iLoop) -- GitLab