Skip to content

Commit

Permalink
Merge pull request #22 from pllim/redshift-float64
Browse files Browse the repository at this point in the history
Redshift wavelength calculation now done in double precision
  • Loading branch information
pllim authored Sep 13, 2016
2 parents b93b04e + 208249d commit d6c7613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysynphot/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ def redshift(self, z):
fluxunits = self.fluxunits
self.convert('angstrom')
self.convert('photlam')
newwave = self.wave*(1.0+z)
newwave = self.wave.astype(N.float64) * (1.0 + z)
copy = ArraySourceSpectrum(wave=newwave,
flux=self.flux,
waveunits=self.waveunits,
Expand Down

0 comments on commit d6c7613

Please sign in to comment.