From 208249d760dc19f99de869d587897f35af3620d6 Mon Sep 17 00:00:00 2001 From: Pey Lian Lim Date: Tue, 13 Sep 2016 13:14:52 -0400 Subject: [PATCH] Redshift wavelength calculation now done in double precision --- pysynphot/spectrum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysynphot/spectrum.py b/pysynphot/spectrum.py index d94a7c25..7f6edf12 100644 --- a/pysynphot/spectrum.py +++ b/pysynphot/spectrum.py @@ -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,