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
99f58e96
Commit
99f58e96
authored
Jun 13, 2023
by
Zhang Xin
Browse files
add gc for straylight model
parent
a20840c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
ObservationSim/Instrument/Filter.py
View file @
99f58e96
...
...
@@ -2,6 +2,7 @@ import galsim
import
pylab
as
pl
import
os
import
numpy
as
np
import
gc
from
ObservationSim.Instrument._util
import
photonEnergy
,
calculateLimitMag
from
ObservationSim.Instrument.FilterParam
import
FilterParam
...
...
@@ -120,6 +121,9 @@ class Filter(object):
self
.
sky_background
=
s_pix
self
.
zodical_spec
=
None
del
sl
gc
.
collect
()
def
update_limit_saturation_mags
(
self
,
exptime
=
150.
,
psf_fwhm
=
0.1969
,
skyFn
=
'sky_emiss_hubble_50_50_A.dat'
,
chip
=
None
):
if
self
.
filter_type
in
[
"GI"
,
"GV"
,
"GU"
]:
return
...
...
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