Loading csst_mci_sim/csst_mci_sim.py +6 −3 Original line number Diff line number Diff line Loading @@ -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. Loading @@ -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) Loading Loading @@ -4919,12 +4921,13 @@ 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].simulate(iLoop) return Loading Loading
csst_mci_sim/csst_mci_sim.py +6 −3 Original line number Diff line number Diff line Loading @@ -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. Loading @@ -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) Loading Loading @@ -4919,12 +4921,13 @@ 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].simulate(iLoop) return Loading