Skip to content

Commit

Permalink
Merge pull request #50 from pllim/fix-interp-isanalytic
Browse files Browse the repository at this point in the history
Fix isAnalytic attribute for InterpolatedSpectralElement
  • Loading branch information
pllim committed Sep 25, 2017
2 parents 2d444af + 1c53d31 commit 444758a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pysynphot/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -3054,7 +3054,7 @@ def __init__(self, fileName, wavelength):
self.name = os.path.expandvars(fileName[0:(xre.start())])
colSpec = xre.group('col')

self.analytic = False
self.isAnalytic = False
self.warnings = {}

self.interpval = wavelength
Expand Down
4 changes: 4 additions & 0 deletions pysynphot/test/test_interp_band.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ def setup_class(self):
'stis_nm16_mjd_010_syn.fits[MJD#]')
self.spec = InterpolatedSpectralElement(filename, interp_val)

def test_attribute(self):
"""https://github.com/spacetelescope/pysynphot/issues/48"""
assert not self.spec.isAnalytic

def test_throughput(self):
throughput = np.array([
0, 0.965065, 0.965065, 0.965065, 0.963328, 0.976245, 0.983497,
Expand Down

0 comments on commit 444758a

Please sign in to comment.