Commit 60cfbc52 authored by Feng Shuai's avatar Feng Shuai 💬
Browse files

Update csst_ifs_gehong/config.py, tests/test_cube3d.py

parent 87388df4
...@@ -22,8 +22,8 @@ class config(): ...@@ -22,8 +22,8 @@ class config():
Pixel size in the spatial direction, by default 0.2arcsec Pixel size in the spatial direction, by default 0.2arcsec
""" """
def __init__(self, wave_min = 3500.0, wave_max = 10000.0, def __init__(self, wave_min = 3500.0, wave_max = 10000.0,
dlam = 1.0, inst_fwhm = 0.1, dlam = 2.0, inst_fwhm = 0.1,
nx = 100, ny = 100, dpix = 0.1): nx = 30, ny = 30, dpix = 0.2):
self.dlam = dlam self.dlam = dlam
self.wave = np.arange(wave_min, wave_max, dlam) self.wave = np.arange(wave_min, wave_max, dlam)
self.wave_min = wave_min self.wave_min = wave_min
......
...@@ -65,7 +65,7 @@ class test_cube3d(unittest.TestCase): ...@@ -65,7 +65,7 @@ class test_cube3d(unittest.TestCase):
u.savefits('result.fits') u.savefits('result.fits')
if np.sum(u.flux[50,50,:]) != np.sum(u.flux[5,95,:]): if np.sum(u.flux[15,15,:]) != np.sum(u.flux[5,25,:]):
print("No Problem!") print("No Problem!")
#plt.figure(figsize=(16,4)) #plt.figure(figsize=(16,4))
......
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