Skip to content

Commit

Permalink
strip filepath from filename entry in metadata
Browse files Browse the repository at this point in the history
* originally populated by lightkurve
  • Loading branch information
kecnry committed Jul 12, 2024
1 parent b0226b7 commit 4700869
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lcviz/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ def light_curve_parser(app, file_obj, data_label=None, show_in_viewer=True, **kw
light_curve['flux:orig_err'] = light_curve['flux_err']
light_curve.meta['FLUX_ORIGIN'] = 'flux:orig'

if 'FILENAME' in light_curve.meta:
light_curve.meta['FILENAME'] = os.path.basename(light_curve.meta['FILENAME'])

data = _data_with_reftime(app, light_curve)
app.add_data(data, data_label)

Expand Down

0 comments on commit 4700869

Please sign in to comment.