From 750f60f182f0b3cdc5285e44b4e8325978f6598d Mon Sep 17 00:00:00 2001 From: "zhaojunyan@shao.ac.cn" Date: Sun, 14 Apr 2024 09:06:20 +0800 Subject: [PATCH] test --- csst_mci_sim/csst_mci_sim.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/csst_mci_sim/csst_mci_sim.py b/csst_mci_sim/csst_mci_sim.py index b63d265..084d829 100644 --- a/csst_mci_sim/csst_mci_sim.py +++ b/csst_mci_sim/csst_mci_sim.py @@ -1482,7 +1482,7 @@ class MCIsimulator(): ############################################################################### ############################################################################### - def configure(self,simnumber,source): + def configure(self,simnumber,source,dir_path): """ Configures the simulator with input information and creates and empty array to which the final image will be build on. @@ -1493,6 +1493,8 @@ class MCIsimulator(): self._createEmpty() + self.information['dir_path']=dir_path + print('print information:', self.information) for key, value in self.information.items(): @@ -5605,11 +5607,11 @@ def runMCIsim(sourcein,configfile,dir_path,iLoop): sim= dict() sim[iLoop] = MCIsimulator(configfile) - sim[iLoop].configure(iLoop,sourcein) # load the configfile; + sim[iLoop].configure(iLoop,sourcein,dir_path) # load the configfile; sim[iLoop].information['sourcein'] =sourcein - sim[iLoop].information['dir_path'] = dir_path + #sim[iLoop].information['dir_path'] = dir_path -- GitLab