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_gehong
Commits
0ca6cacd
Commit
0ca6cacd
authored
Apr 15, 2024
by
Feng Shuai
💬
Browse files
Update tests/test_cube3d.py, tests/test_map2d.py, tests/test_spec1d.py
parent
b7a01b6b
Pipeline
#4089
failed with stage
in 0 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/test_cube3d.py
View file @
0ca6cacd
import
sys
sys
.
path
.
insert
(
0
,
'..'
)
import
unittest
from
gehong
import
spec1d
as
s
from
gehong
import
map2d
as
m
from
gehong
import
cube3d
as
b
from
gehong
import
config
as
c
from
csst_ifs_
gehong
import
spec1d
as
s
from
csst_ifs_
gehong
import
map2d
as
m
from
csst_ifs_
gehong
import
cube3d
as
b
from
csst_ifs_
gehong
import
config
as
c
import
numpy
as
np
import
matplotlib.pyplot
as
plt
...
...
@@ -76,4 +76,4 @@ class test_cube3d(unittest.TestCase):
print
(
">>> Unit test for **Spec Cube** Modelling has been passed!"
)
if
__name__
==
'__main__'
:
unittest
.
main
()
\ No newline at end of file
unittest
.
main
()
tests/test_map2d.py
View file @
0ca6cacd
import
sys
sys
.
path
.
insert
(
0
,
'..'
)
import
unittest
from
gehong
import
map2d
as
m
from
gehong
import
config
as
c
from
csst_ifs_
gehong
import
map2d
as
m
from
csst_ifs_
gehong
import
config
as
c
import
numpy
as
np
import
matplotlib.pyplot
as
plt
...
...
@@ -234,4 +234,4 @@ class test_map2d(unittest.TestCase):
print
(
"SBmap No Problem!"
)
if
__name__
==
'__main__'
:
unittest
.
main
()
\ No newline at end of file
unittest
.
main
()
tests/test_spec1d.py
View file @
0ca6cacd
import
sys
sys
.
path
.
insert
(
0
,
'..'
)
import
unittest
from
gehong
import
spec1d
as
s
from
gehong
import
config
as
c
from
csst_ifs_
gehong
import
spec1d
as
s
from
csst_ifs_
gehong
import
config
as
c
import
numpy
as
np
import
matplotlib.pyplot
as
plt
...
...
@@ -365,4 +365,4 @@ class test_spec1d(unittest.TestCase):
print
(
">>> Unit test for **AGN** Modelling has been passed!"
)
if
__name__
==
'__main__'
:
unittest
.
main
()
\ No newline at end of file
unittest
.
main
()
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