Skip to content

Commit

Permalink
syntax error with is not instead of !=
Browse files Browse the repository at this point in the history
  • Loading branch information
hposborn committed Aug 20, 2024
1 parent cfa8d4f commit ed0eebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MonoTools/lightcurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])},
Expand Down

0 comments on commit ed0eebb

Please sign in to comment.