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
32e7ef42
Commit
32e7ef42
authored
Apr 10, 2024
by
Yan Zhaojun
Browse files
update setup.py
parent
ce2e6755
Pipeline
#3973
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_ifs_sim/csst_ifs_sim.py
View file @
32e7ef42
...
...
@@ -4781,9 +4781,9 @@ class IFSsimulator():
if
simnumber
<=
200
and
simnumber
>
150
:
self
.
information
[
'exptime'
]
=
1200
self
.
skyfilepath
=
self
.
information
[
'skyfi
lepath
'
]
self
.
skyfilepath
=
self
.
information
[
'dir_path'
]
+
self
.
information
[
'sky
_
fi
tsin
'
]
print
(
self
.
skyfilepath
)
print
(
'self.skyfilepath = '
,
self
.
skyfilepath
)
# self.earthshine_theta=30.0 # in degree
...
...
@@ -5024,7 +5024,7 @@ class IFSsimulator():
##############################################################################################
def
runIFSsim
(
sourcein
,
skyfitsin
,
configfile
,
iLoop
,
applyhole
=
'no'
):
def
runIFSsim
(
sourcein
,
configfile
,
iLoop
,
applyhole
=
'no'
):
# opts, args = processArgs()
...
...
@@ -5043,8 +5043,7 @@ def runIFSsim(sourcein, skyfitsin, configfile, iLoop, applyhole='no'):
###############
if
sourcein
==
'SCI'
:
simulate
[
iLoop
].
information
[
'skyfilepath'
]
=
skyfitsin
##############
simulate
[
iLoop
].
simulate
(
sourcein
,
iLoop
)
...
...
tests/test_ifs_sim.py
View file @
32e7ef42
...
...
@@ -36,13 +36,13 @@ class TestDemoFunction(unittest.TestCase):
###configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C90.config'
configfile
=
'./ifs_data/IFS_sim_C90.config'
skyfitsin
=
dir_path
+
'IFS_inputdata/FengshuaiData/NGC6397_S6102.fits'
sourcein
=
'SCI'
print
(
configfile
)
print
(
skyfitsin
)
csst_ifs_sim
.
runIFSsim
(
sourcein
,
skyfitsin
,
configfile
,
1
,
'no'
)
csst_ifs_sim
.
runIFSsim
(
sourcein
,
configfile
,
1
,
'no'
)
self
.
assertEqual
(
1
,
1
,
"case 1: SCI sim passes."
,
...
...
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