Commit 966f2132 authored by Zhang Xin's avatar Zhang Xin
Browse files

fix straylight cpp NAN bug; fix fgs no straylight bug

parent 660cb1d6
...@@ -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
else: elif 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
......
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