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
22ec4bca
Commit
22ec4bca
authored
Apr 10, 2024
by
Yan Zhaojun
Browse files
update
parent
18532da0
Pipeline
#3933
passed 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 @
22ec4bca
...
@@ -4761,7 +4761,7 @@ if __name__ == "__main__":
...
@@ -4761,7 +4761,7 @@ if __name__ == "__main__":
if
len
(
sys
.
argv
[:])
>=
2
:
if
len
(
sys
.
argv
[:])
>=
2
:
configfile
=
sys
.
argv
[
1
]
configfile
=
sys
.
argv
[
1
]
+
'IFS_inputdata/configData/IFS_sim_C90.config'
if
not
os
.
path
.
exists
(
fonfigfile
):
if
not
os
.
path
.
exists
(
fonfigfile
):
print
(
'The given input fonfigfile path is wrong......'
)
print
(
'The given input fonfigfile path is wrong......'
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
...
...
tests/test_ifs_sim.py
View file @
22ec4bca
...
@@ -32,7 +32,7 @@ class TestDemoFunction(unittest.TestCase):
...
@@ -32,7 +32,7 @@ class TestDemoFunction(unittest.TestCase):
This case aims to test whether the demo function returns `1` if input is `None`.
This case aims to test whether the demo function returns `1` if input is `None`.
"""
"""
# demo function test
# demo function test
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'ifs_sim
/IFS_inputData/configData
'
)
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'ifs_sim'
)
csst_ifs_sim
(
dir_path
)
csst_ifs_sim
(
dir_path
)
...
@@ -58,7 +58,7 @@ class TestDemoFunction(unittest.TestCase):
...
@@ -58,7 +58,7 @@ class TestDemoFunction(unittest.TestCase):
This case aims to test whether the demo function returns `1` if input is `None`.
This case aims to test whether the demo function returns `1` if input is `None`.
"""
"""
# demo function test
# demo function test
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'ifs_sim
/IFS_inputData/configData
'
)
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'ifs_sim'
)
csst_ifs_sim
(
dir_path
,
BIAS
)
csst_ifs_sim
(
dir_path
,
BIAS
)
...
@@ -83,7 +83,7 @@ class TestDemoFunction(unittest.TestCase):
...
@@ -83,7 +83,7 @@ class TestDemoFunction(unittest.TestCase):
This case aims to test whether the demo function returns `1` if input is `None`.
This case aims to test whether the demo function returns `1` if input is `None`.
"""
"""
# demo function test
# demo function test
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'ifs_sim
/IFS_inputData/configData
'
)
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'ifs_sim'
)
csst_ifs_sim
(
dir_path
,
'DARK'
)
csst_ifs_sim
(
dir_path
,
'DARK'
)
...
@@ -110,7 +110,7 @@ class TestDemoFunction(unittest.TestCase):
...
@@ -110,7 +110,7 @@ class TestDemoFunction(unittest.TestCase):
This case aims to test whether the demo function returns `1` if input is `None`.
This case aims to test whether the demo function returns `1` if input is `None`.
"""
"""
# demo function test
# demo function test
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'ifs_sim
/IFS_inputData/configData
'
)
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'ifs_sim'
)
csst_ifs_sim
(
dir_path
,
'LAMP'
)
csst_ifs_sim
(
dir_path
,
'LAMP'
)
...
@@ -137,7 +137,7 @@ class TestDemoFunction(unittest.TestCase):
...
@@ -137,7 +137,7 @@ class TestDemoFunction(unittest.TestCase):
This case aims to test whether the demo function returns `1` if input is `None`.
This case aims to test whether the demo function returns `1` if input is `None`.
"""
"""
# demo function test
# demo function test
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'ifs_sim
/IFS_inputData/configData
'
)
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'ifs_sim'
)
csst_ifs_sim
(
dir_path
,
'FLAT'
)
csst_ifs_sim
(
dir_path
,
'FLAT'
)
...
@@ -163,7 +163,7 @@ class TestDemoFunction(unittest.TestCase):
...
@@ -163,7 +163,7 @@ class TestDemoFunction(unittest.TestCase):
This case aims to test whether the demo function returns `1` if input is `None`.
This case aims to test whether the demo function returns `1` if input is `None`.
"""
"""
# demo function test
# demo function test
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'ifs_sim
/IFS_inputData/configData
'
)
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'ifs_sim'
)
csst_ifs_sim
(
dir_path
,
'LAMP'
,
'yes'
)
csst_ifs_sim
(
dir_path
,
'LAMP'
,
'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