From d92c6ba66597d77a46aba1b95e6492aa5c01b376 Mon Sep 17 00:00:00 2001 From: Pey Lian Lim Date: Thu, 13 Apr 2017 11:35:45 -0400 Subject: [PATCH] Fix test_ticket183 failure due to value change in TMT --- pysynphot/observationmode.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pysynphot/observationmode.py b/pysynphot/observationmode.py index 2f5c9260..b6cd752d 100644 --- a/pysynphot/observationmode.py +++ b/pysynphot/observationmode.py @@ -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)