Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
ea0a0ae7
Commit
ea0a0ae7
authored
11 months ago
by
Yan Zhaojun
Browse files
Options
Download
Email Patches
Plain Diff
update
parent
22ec4bca
develop
main
master
yanzhaojun-main-patch-07633
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
csst_ifs_sim/csst_ifs_sim.py
+5
-1
csst_ifs_sim/csst_ifs_sim.py
tests/test_ifs_sim.py
+3
-0
tests/test_ifs_sim.py
with
8 additions
and
1 deletion
+8
-1
csst_ifs_sim/csst_ifs_sim.py
+
5
-
1
View file @
ea0a0ae7
...
...
@@ -4762,10 +4762,14 @@ if __name__ == "__main__":
if
len
(
sys
.
argv
[:])
>=
2
:
configfile
=
sys
.
argv
[
1
]
+
'IFS_inputdata/configData/IFS_sim_C90.config'
if
not
os
.
path
.
exists
(
f
onfigfile
):
if
not
os
.
path
.
exists
(
c
onfigfile
):
print
(
'The given input fonfigfile path is wrong......'
)
sys
.
exit
(
1
)
configfile
=
configfile0
if
len
(
sys
.
argv
[:])
>=
3
:
sourcein
=
sys
.
argv
[
2
]
...
...
This diff is collapsed.
Click to expand it.
tests/test_ifs_sim.py
+
3
-
0
View file @
ea0a0ae7
...
...
@@ -34,6 +34,9 @@ class TestDemoFunction(unittest.TestCase):
# demo function test
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'ifs_sim'
)
print
(
dir_path
)
csst_ifs_sim
(
dir_path
)
self
.
assertTrue
(
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets