Loading tests/test_cube3d.py +28 −25 Original line number Diff line number Diff line import sys sys.path.insert(0, '..') import unittest 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 # import matplotlib.pyplot as plt # import warnings sys.path.insert(0, '..') import warnings class test_cube3d(unittest.TestCase): Loading Loading @@ -78,5 +80,6 @@ class test_cube3d(unittest.TestCase): print("-----------------------------------------------------------------") print(">>> Unit test for **Spec Cube** Modelling has been passed!") if __name__ == '__main__': unittest.main() tests/test_map2d.py +60 −58 Original line number Diff line number Diff line import sys sys.path.insert(0, '..') import unittest 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 # import matplotlib.pyplot as plt # import warnings sys.path.insert(0, '..') import warnings class test_map2d(unittest.TestCase): Loading Loading @@ -233,5 +234,6 @@ class test_map2d(unittest.TestCase): if np.sum(gas.ebv) == np.sum(ebvmap.map): print("SBmap No Problem!") if __name__ == '__main__': unittest.main() tests/test_spec1d.py +112 −111 Original line number Diff line number Diff line import sys sys.path.insert(0, '..') import unittest 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 import warnings warnings.simplefilter("ignore", ResourceWarning) sys.path.insert(0, '..') class test_spec1d(unittest.TestCase): Loading Loading @@ -364,5 +364,6 @@ class test_spec1d(unittest.TestCase): print("-----------------------------------------------------------------") print(">>> Unit test for **AGN** Modelling has been passed!") if __name__ == '__main__': unittest.main() Loading
tests/test_cube3d.py +28 −25 Original line number Diff line number Diff line import sys sys.path.insert(0, '..') import unittest 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 # import matplotlib.pyplot as plt # import warnings sys.path.insert(0, '..') import warnings class test_cube3d(unittest.TestCase): Loading Loading @@ -78,5 +80,6 @@ class test_cube3d(unittest.TestCase): print("-----------------------------------------------------------------") print(">>> Unit test for **Spec Cube** Modelling has been passed!") if __name__ == '__main__': unittest.main()
tests/test_map2d.py +60 −58 Original line number Diff line number Diff line import sys sys.path.insert(0, '..') import unittest 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 # import matplotlib.pyplot as plt # import warnings sys.path.insert(0, '..') import warnings class test_map2d(unittest.TestCase): Loading Loading @@ -233,5 +234,6 @@ class test_map2d(unittest.TestCase): if np.sum(gas.ebv) == np.sum(ebvmap.map): print("SBmap No Problem!") if __name__ == '__main__': unittest.main()
tests/test_spec1d.py +112 −111 Original line number Diff line number Diff line import sys sys.path.insert(0, '..') import unittest 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 import warnings warnings.simplefilter("ignore", ResourceWarning) sys.path.insert(0, '..') class test_spec1d(unittest.TestCase): Loading Loading @@ -364,5 +364,6 @@ class test_spec1d(unittest.TestCase): print("-----------------------------------------------------------------") print(">>> Unit test for **AGN** Modelling has been passed!") if __name__ == '__main__': unittest.main()