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
eb13ab3d
Commit
eb13ab3d
authored
Apr 10, 2024
by
Yan Zhaojun
Browse files
update setup.py
parent
80c8efca
Pipeline
#3963
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_ifs_sim/csst_ifs_sim.py
View file @
eb13ab3d
...
@@ -977,22 +977,24 @@ class IFSsimulator():
...
@@ -977,22 +977,24 @@ class IFSsimulator():
self
.
configfile
=
opts
.
configfile
self
.
configfile
=
opts
.
configfile
if
opts
.
section
is
None
:
#
if opts.section is None:
####self.section = 'DEFAULT'
#
####self.section = 'DEFAULT'
self
.
section
=
'TEST'
# simulation section;
#
self.section = 'TEST' # simulation section;
else
:
#
else:
self
.
section
=
opts
.
section
#
self.section = opts.section
if
opts
.
debug
is
None
:
self
.
section
=
'TEST'
# simulation section;
self
.
debug
=
False
else
:
self
.
debug
=
opts
.
debug
try
:
# if opts.debug is None:
self
.
random
=
opts
.
testing
# self.debug = False
except
:
# else:
self
.
random
=
False
# self.debug = opts.debug
# try:
# self.random = opts.testing
# except:
# self.random = False
# load instrument model, these values are also stored in the FITS header
# load instrument model, these values are also stored in the FITS header
self
.
information
=
IFSinstrumentModel
.
IFSinformation
()
self
.
information
=
IFSinstrumentModel
.
IFSinformation
()
...
@@ -5019,12 +5021,12 @@ class IFSsimulator():
...
@@ -5019,12 +5021,12 @@ class IFSsimulator():
def
runIFSsim
(
sourcein
,
skyfitsin
,
configfile
,
iLoop
,
applyhole
=
'no'
):
def
runIFSsim
(
sourcein
,
skyfitsin
,
configfile
,
iLoop
,
applyhole
=
'no'
):
opts
,
args
=
processArgs
()
#
opts, args = processArgs()
opts
.
configfile
=
configfile
#
opts.configfile = configfile
simulate
=
dict
()
simulate
=
dict
()
simulate
[
iLoop
]
=
IFSsimulator
(
opts
)
simulate
[
iLoop
]
=
IFSsimulator
(
configfile
)
if
applyhole
==
'yes'
and
sourcein
==
'LAMP'
:
if
applyhole
==
'yes'
and
sourcein
==
'LAMP'
:
simulate
[
iLoop
].
information
[
'holemask'
]
=
'yes'
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