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
60cfbc52
Commit
60cfbc52
authored
Apr 15, 2024
by
Feng Shuai
💬
Browse files
Update csst_ifs_gehong/config.py, tests/test_cube3d.py
parent
87388df4
Changes
2
Hide whitespace changes
Inline
Side-by-side
csst_ifs_gehong/config.py
View file @
60cfbc52
...
@@ -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
=
10
0
,
ny
=
10
0
,
dpix
=
0.
1
):
nx
=
3
0
,
ny
=
3
0
,
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
...
...
tests/test_cube3d.py
View file @
60cfbc52
...
@@ -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
,
9
5
,:]):
if
np
.
sum
(
u
.
flux
[
15
,
15
,:])
!=
np
.
sum
(
u
.
flux
[
5
,
2
5
,:]):
print
(
"No Problem!"
)
print
(
"No Problem!"
)
#plt.figure(figsize=(16,4))
#plt.figure(figsize=(16,4))
...
...
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