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_mci_sim
Commits
fc2d8c26
Commit
fc2d8c26
authored
Apr 13, 2024
by
Yan Zhaojun
Browse files
test
parent
13f82970
Pipeline
#4004
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_mci_sim/csst_mci_sim.py
View file @
fc2d8c26
...
@@ -5127,7 +5127,11 @@ class MCIsimulator():
...
@@ -5127,7 +5127,11 @@ class MCIsimulator():
##############################################################################################
##############################################################################################
##############################################################################################
##############################################################################################
sourcelist
=
[
'EXDF'
,
'STAR'
,
'PIPR'
,
'TRNS'
,
'COMB'
,
'CALI'
]
sourcelist
=
[
'EXDF'
,
'STAR'
,
'PIPR'
,
'TRNS'
,
'COMB'
,
'CALI'
,
'DARK'
,
'BIAS'
,
'FLAT'
]
if
self
.
source
not
in
sourcelist
:
print
(
'Sourcein is wront'
)
sys
.
exit
(
1
)
self
.
source
=
self
.
information
[
'sourcein'
]
self
.
source
=
self
.
information
[
'sourcein'
]
self
.
information
[
'ver'
]
=
'01'
self
.
information
[
'ver'
]
=
'01'
self
.
_loadGhostModel
()
self
.
_loadGhostModel
()
...
...
tests/test_mci_sim.py
View file @
fc2d8c26
...
@@ -21,7 +21,7 @@ class TestDemoFunction(unittest.TestCase):
...
@@ -21,7 +21,7 @@ class TestDemoFunction(unittest.TestCase):
"""
"""
Aim
Aim
---
---
Test
ifs
sim function:
SCI
case.
Test
mci
sim function:
EXDF
case.
Criteria
Criteria
--------
--------
...
@@ -40,7 +40,7 @@ class TestDemoFunction(unittest.TestCase):
...
@@ -40,7 +40,7 @@ class TestDemoFunction(unittest.TestCase):
configfile
=
'./mci_data/mci_all_9K.config'
configfile
=
'./mci_data/mci_all_9K.config'
sourcein
=
'
SCI
'
sourcein
=
'
EXDF
'
print
(
configfile
)
print
(
configfile
)
csst_mci_sim
.
runMCIsim
(
sourcein
,
configfile
,
dir_path
,
1
)
csst_mci_sim
.
runMCIsim
(
sourcein
,
configfile
,
dir_path
,
1
)
...
...
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