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_ifs_sim
Commits
e0a34fdd
Commit
e0a34fdd
authored
May 16, 2024
by
Yan Zhaojun
Browse files
test
parent
1d65c58c
Pipeline
#4627
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_ifs_sim/csst_ifs_sim.py
View file @
e0a34fdd
...
...
@@ -1934,7 +1934,7 @@ class IFSsimulator():
###############################################################################
###############################################################################
def
configure
(
self
,
s
imnumber
,
dir_path
,
result_path
):
def
configure
(
self
,
s
ourcein
,
dir_path
,
result_path
,
simnumber
,
debug
,
applyhole
):
"""
...
...
@@ -1972,7 +1972,7 @@ class IFSsimulator():
# self.information['holemask']
if
self
.
source
==
'LAMP'
:
if
self
.
information
[
'holemask'
]
==
'yes'
:
if
applyhole
==
'yes'
:
ss
=
'_with_hole_'
else
:
ss
=
'_no_hole_'
...
...
@@ -5461,7 +5461,8 @@ class IFSsimulator():
self
.
source
=
sourcein
self
.
simnumber
=
simnumber
self
.
configure
(
simnumber
,
dir_path
,
result_path
)
# print the configfile name and path;
#self.configure(simnumber,dir_path,result_path) # print the configfile name and path;
self
.
debug
=
self
.
information
[
'debug'
]
...
...
@@ -5755,6 +5756,9 @@ def runIFSsim(sourcein, configfile, dir_path, result_path, iLoop, debug, applyho
simulate
=
dict
()
simulate
[
iLoop
]
=
IFSsimulator
(
configfile
)
simulate
[
iLoop
].
configure
(
sourcein
,
dir_path
,
result_path
,
iLoop
,
debug
,
applyhole
)
# load the configfile;
if
applyhole
==
'yes'
and
sourcein
==
'LAMP'
:
simulate
[
iLoop
].
information
[
'holemask'
]
=
'yes'
...
...
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