Skip to content

Commit

Permalink
Salt2 ColorLaw function correction
Browse files Browse the repository at this point in the history
  • Loading branch information
ConstanceGanot committed Feb 8, 2024
1 parent e7cd6ec commit bd0852c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sncosmo/salt2utils.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,6 @@ cdef class SALT2ColorLaw(object):
# reconstruct input wavelengths
wave_lo = self.l_lo * SALT2CL_V_MINUS_B + SALT2CL_B
wave_hi = self.l_hi * SALT2CL_V_MINUS_B + SALT2CL_B
coeffs = [self.coeffs[i+1] for i in range(self.ncoeffs)]
coeffs = [self.coeffs[i+1] for i in range(self.ncoeffs - 1)]

return (wave_lo, wave_hi), coeffs

0 comments on commit bd0852c

Please sign in to comment.