Skip to content

Commit

Permalink
fix parser error caused by rebasing
Browse files Browse the repository at this point in the history
* #77 uses .columns which is only supported by light curves, not TPFs
  • Loading branch information
kecnry committed Jan 19, 2024
1 parent 46289a6 commit 3e9e016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lcviz/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def light_curve_parser(app, file_obj, data_label=None, show_in_viewer=True, **kw

# handle flux_origin default
flux_origin = light_curve.meta.get('FLUX_ORIGIN', None) # i.e. PDCSAP or SAP
if flux_origin == 'flux' or (flux_origin is None and 'flux' in light_curve.columns):
if flux_origin == 'flux' or (flux_origin is None and 'flux' in getattr(light_curve, 'columns', [])): # noqa
# then make a copy of this column so it won't be lost when changing with the flux_column
# plugin
light_curve['flux:orig'] = light_curve['flux']
Expand Down

0 comments on commit 3e9e016

Please sign in to comment.