Skip to content

Commit

Permalink
Update lcviz/parsers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Kyle Conroy <[email protected]>
  • Loading branch information
bmorris3 and kecnry authored Dec 20, 2023
1 parent 429888e commit 90c6c08
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lcviz/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ def light_curve_parser(app, file_obj, data_label=None, show_in_viewer=True, **kw
light_curve = lightkurve.read(file_obj)

# load a LightCurve object:
elif isinstance(file_obj, lightkurve.LightCurve):
light_curve = file_obj

# load a LightCurve object:
elif isinstance(file_obj, lightkurve.targetpixelfile.KeplerTargetPixelFile):
elif isinstance(file_obj, (lightkurve.LightCurve, lightkurve.KeplerTargetPixelFile)):
light_curve = file_obj

# make a data label:
Expand Down

0 comments on commit 90c6c08

Please sign in to comment.