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_msc_sim
Commits
966f2132
Commit
966f2132
authored
Jun 15, 2023
by
Zhang Xin
Browse files
fix straylight cpp NAN bug; fix fgs no straylight bug
parent
660cb1d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
ObservationSim/Instrument/Filter.py
View file @
966f2132
...
@@ -116,7 +116,7 @@ class Filter(object):
...
@@ -116,7 +116,7 @@ class Filter(object):
s_pix
,
spec
=
sl
.
calculateStrayLightGrating
(
grating
=
self
.
filter_type
.
upper
())
s_pix
,
spec
=
sl
.
calculateStrayLightGrating
(
grating
=
self
.
filter_type
.
upper
())
self
.
sky_background
=
s_pix
self
.
sky_background
=
s_pix
self
.
zodical_spec
=
spec
self
.
zodical_spec
=
spec
el
se
:
el
if
self
.
filter_type
.
lower
()
in
[
"nuv"
,
"u"
,
"g"
,
"r"
,
"i"
,
"z"
,
"y"
]
:
s_pix
=
sl
.
calculateStrayLightFilter
(
filter
=
self
.
filter_type
.
lower
())
s_pix
=
sl
.
calculateStrayLightFilter
(
filter
=
self
.
filter_type
.
lower
())
self
.
sky_background
=
s_pix
self
.
sky_background
=
s_pix
self
.
zodical_spec
=
None
self
.
zodical_spec
=
None
...
...
ObservationSim/Straylight/lib/libstraylight.dylib
View file @
966f2132
No preview for this file type
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