Skip to content
GitLab
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
750f60f1
Commit
750f60f1
authored
Apr 14, 2024
by
Yan Zhaojun
Browse files
test
parent
56e0a58f
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_mci_sim/csst_mci_sim.py
View file @
750f60f1
...
...
@@ -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
...
...
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