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
ea0a0ae7
Commit
ea0a0ae7
authored
Apr 10, 2024
by
Yan Zhaojun
Browse files
update
parent
22ec4bca
Changes
2
Hide whitespace changes
Inline
Side-by-side
csst_ifs_sim/csst_ifs_sim.py
View file @
ea0a0ae7
...
@@ -4762,10 +4762,14 @@ if __name__ == "__main__":
...
@@ -4762,10 +4762,14 @@ if __name__ == "__main__":
if
len
(
sys
.
argv
[:])
>=
2
:
if
len
(
sys
.
argv
[:])
>=
2
:
configfile
=
sys
.
argv
[
1
]
+
'IFS_inputdata/configData/IFS_sim_C90.config'
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......'
)
print
(
'The given input fonfigfile path is wrong......'
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
configfile
=
configfile0
if
len
(
sys
.
argv
[:])
>=
3
:
if
len
(
sys
.
argv
[:])
>=
3
:
sourcein
=
sys
.
argv
[
2
]
sourcein
=
sys
.
argv
[
2
]
...
...
tests/test_ifs_sim.py
View file @
ea0a0ae7
...
@@ -34,6 +34,9 @@ class TestDemoFunction(unittest.TestCase):
...
@@ -34,6 +34,9 @@ class TestDemoFunction(unittest.TestCase):
# demo function test
# demo function test
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'ifs_sim'
)
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'ifs_sim'
)
print
(
dir_path
)
csst_ifs_sim
(
dir_path
)
csst_ifs_sim
(
dir_path
)
self
.
assertTrue
(
self
.
assertTrue
(
...
...
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