Skip to content

Commit

Permalink
Fix test_ticket183 failure due to value change in TMT
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Apr 13, 2017
1 parent 5078b1a commit d92c6ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pysynphot/observationmode.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,9 @@ def __init__(self, obsmode, method='HSTGraphTable',graphtable=None,
#The constructor of the parent class defines the self.thcompnames
BaseObservationMode.__init__(self, obsmode, method, graphtable)

#Check here to see if there are any.
if set(self.thcompnames).issubset(set(['clear',''])):
# Check here to see if there are any.
# "0.0" was added in tae17277m_tmt.fits (Apr 2017).
if set(self.thcompnames).issubset(set(['clear', '', '0.0'])):
raise NotImplementedError("No thermal support provided for %s"%obsmode)

# ct = CompTable(comptable)
Expand Down

0 comments on commit d92c6ba

Please sign in to comment.