From abbfd4bdd4b29b6cf616fa346754145b5941355d Mon Sep 17 00:00:00 2001 From: Pey Lian Lim Date: Thu, 11 Aug 2016 14:25:53 -0400 Subject: [PATCH] UniformTransmission always return throughput as numpy array --- pysynphot/spectrum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysynphot/spectrum.py b/pysynphot/spectrum.py index da399e87..a4b3d4d3 100644 --- a/pysynphot/spectrum.py +++ b/pysynphot/spectrum.py @@ -2706,7 +2706,7 @@ def __call__(self, wavelength): wavelength array as argument. """ if wavelength is None: - thru = self.value + thru = N.array([self.value], dtype=N.float) else: thru = N.zeros_like(wavelength, dtype=N.float) + self.value