From ed0eebb49f464388983a88e747d7e222b29e6ac5 Mon Sep 17 00:00:00 2001 From: hposborn Date: Tue, 20 Aug 2024 17:27:00 +0200 Subject: [PATCH] syntax error with is not instead of != --- MonoTools/lightcurve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MonoTools/lightcurve.py b/MonoTools/lightcurve.py index f428ff7..30a1c70 100755 --- a/MonoTools/lightcurve.py +++ b/MonoTools/lightcurve.py @@ -1612,7 +1612,7 @@ def read_from_file(self, f, fname, sect, **kwargs): #Only stacking together if we have all ifluxes[ifname]=np.hstack(ifluxes[ifname]) else: - assert ifname is not 'flux', "QLP flux extraction failed - must at least have a flux measurement..." + assert ifname != 'flux', "QLP flux extraction failed - must at least have a flux measurement..." ilc.load_lc(np.hstack([fi[1].data['TIME'] for fi in f]), fluxes=ifluxes, flux_errs={'flux_err':np.hstack([fi[1].data['KSPSAP_FLUX_ERR'] if 'KSPSAP_FLUX_ERR' in fi[1].data.columns.names else fi[1].data['DET_FLUX_ERR'] for fi in f])},