Skip to content

Commit

Permalink
Merge pull request #471 from LSSTDESC/issue/470/GLSN_min_wavelength
Browse files Browse the repository at this point in the history
Increase GLSN redshift range for redshifting of SEDs.

Closes #470
  • Loading branch information
jbkalmbach authored Apr 2, 2018
2 parents 9c74c3b + 2468d6c commit 5b3e50e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/desc/twinkles/sprinkler.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,12 @@ def create_sn_sed(self, system_df, sn_ra, sn_dec, sed_mjd):

current_sn_obj = self.sn_obj.fromSNState(sn_param_dict)
current_sn_obj.mwEBVfromMaps()
wavelen_max = 1800.
wavelen_min = 30.
wavelen_step = 0.1
sn_sed_obj = current_sn_obj.SNObjectSED(time=sed_mjd,
wavelen=self.bandpassDict['i'].wavelen)
wavelen=np.arange(wavelen_min, wavelen_max,
wavelen_step))
flux_500 = sn_sed_obj.flambda[np.where(sn_sed_obj.wavelen >= 499.99)][0]

if flux_500 > 0.:
Expand Down

0 comments on commit 5b3e50e

Please sign in to comment.