Commit 0ca6cacd authored by Feng Shuai's avatar 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
import sys import sys
sys.path.insert(0, '..') sys.path.insert(0, '..')
import unittest import unittest
from gehong import spec1d as s from csst_ifs_gehong import spec1d as s
from gehong import map2d as m from csst_ifs_gehong import map2d as m
from gehong import cube3d as b from csst_ifs_gehong import cube3d as b
from gehong import config as c from csst_ifs_gehong import config as c
import numpy as np import numpy as np
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
...@@ -76,4 +76,4 @@ class test_cube3d(unittest.TestCase): ...@@ -76,4 +76,4 @@ class test_cube3d(unittest.TestCase):
print(">>> Unit test for **Spec Cube** Modelling has been passed!") print(">>> Unit test for **Spec Cube** Modelling has been passed!")
if __name__=='__main__': if __name__=='__main__':
unittest.main() unittest.main()
\ No newline at end of file
import sys import sys
sys.path.insert(0, '..') sys.path.insert(0, '..')
import unittest import unittest
from gehong import map2d as m from csst_ifs_gehong import map2d as m
from gehong import config as c from csst_ifs_gehong import config as c
import numpy as np import numpy as np
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
...@@ -234,4 +234,4 @@ class test_map2d(unittest.TestCase): ...@@ -234,4 +234,4 @@ class test_map2d(unittest.TestCase):
print("SBmap No Problem!") print("SBmap No Problem!")
if __name__=='__main__': if __name__=='__main__':
unittest.main() unittest.main()
\ No newline at end of file
import sys import sys
sys.path.insert(0, '..') sys.path.insert(0, '..')
import unittest import unittest
from gehong import spec1d as s from csst_ifs_gehong import spec1d as s
from gehong import config as c from csst_ifs_gehong import config as c
import numpy as np import numpy as np
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
...@@ -365,4 +365,4 @@ class test_spec1d(unittest.TestCase): ...@@ -365,4 +365,4 @@ class test_spec1d(unittest.TestCase):
print(">>> Unit test for **AGN** Modelling has been passed!") print(">>> Unit test for **AGN** Modelling has been passed!")
if __name__=='__main__': if __name__=='__main__':
unittest.main() unittest.main()
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment