You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SNClass.check_overlaps(...) makees a list of overlapping filters. At the moment, SNClass.plot_lc(...) looks like:
if mark_spectra:
for spec_key in self.spec:
if verbose: print(np.nanmin(self.spec[spec_key].wavelength) - filter_uncertainty, self.phot.data_filters[filter_key]._lower_edge)
if verbose: print(np.nanmax(self.spec[spec_key].wavelength) + filter_uncertainty, self.phot.data_filters[filter_key]._upper_edge)
if verbose: print(self.spec[spec_key].data.meta["filename"] )
too_blue = self.phot.data_filters[filter_key]._lower_edge < np.nanmin(self.spec[spec_key].wavelength) - filter_uncertainty
too_red = self.phot.data_filters[filter_key]._upper_edge > np.nanmax(self.spec[spec_key].wavelength) + filter_uncertainty
# if self.spec[spec_key]. self.phot.data_filters[filter_key]._upper_edge and self.phot.data_filters[filter_key]._lower_edge
if verbose: print(too_blue, too_red)
if not too_red and not too_blue:
ax1.plot([self.spec[spec_key].mjd_obs, self.spec[spec_key].mjd_obs],
[0.0, np.nanmax(self.phot.phot['flux'])*1.5],
ls = ':', color = hex['batman'], zorder = 0)
Should be able to replace it with:
for spectrum in self.spec:
if filter in self.spec. _overlapping_filter_list:
plot spec
The text was updated successfully, but these errors were encountered:
SNClass.check_overlaps(...)
makees a list of overlapping filters. At the moment,SNClass.plot_lc(...)
looks like:Should be able to replace it with:
The text was updated successfully, but these errors were encountered: