Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-sims
csst_mci_sim
Commits
d0f573ff
Commit
d0f573ff
authored
1 year ago
by
Yan Zhaojun
Browse files
Options
Download
Email Patches
Plain Diff
test
parent
1d32d13e
develop
master
No related merge requests found
Pipeline
#4622
passed with stage
in 0 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst_mci_sim/csst_mci_sim.py
+6
-3
csst_mci_sim/csst_mci_sim.py
with
6 additions
and
3 deletions
+6
-3
csst_mci_sim/csst_mci_sim.py
+
6
-
3
View file @
d0f573ff
...
@@ -1011,7 +1011,7 @@ class MCIsimulator():
...
@@ -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
Configures the simulator with input information and creates and empty array to which the final image will
be build on.
be build on.
...
@@ -1024,6 +1024,8 @@ class MCIsimulator():
...
@@ -1024,6 +1024,8 @@ class MCIsimulator():
self
.
information
[
'dir_path'
]
=
dir_path
self
.
information
[
'dir_path'
]
=
dir_path
self
.
information
[
'result_path'
]
=
result_path
self
.
source
=
sourcein
self
.
source
=
sourcein
##print('print information:', self.information)
##print('print information:', self.information)
...
@@ -4919,11 +4921,12 @@ def runMCIsim(sourcein,configfile,dir_path, result_path, debug, iLoop):
...
@@ -4919,11 +4921,12 @@ def runMCIsim(sourcein,configfile,dir_path, result_path, debug, iLoop):
sim
=
dict
()
sim
=
dict
()
sim
[
iLoop
]
=
MCIsimulator
(
configfile
)
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
[
'sourcein'
]
=
sourcein
sim
[
iLoop
].
information
[
'debug'
]
=
debug
sim
[
iLoop
].
information
[
'debug'
]
=
debug
sim
[
iLoop
].
information
[
'result_path'
]
=
result_path
sim
[
iLoop
].
information
[
'result_path'
]
=
result_path
sim
[
iLoop
].
simulate
(
iLoop
)
sim
[
iLoop
].
simulate
(
iLoop
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets