Skip to content

Commit

Permalink
UniformTransmission always return throughput as numpy array
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Aug 11, 2016
1 parent 6b89b42 commit abbfd4b
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 @@ -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

Expand Down

0 comments on commit abbfd4b

Please sign in to comment.