Skip to content

Commit

Permalink
Backport PR #124: strip filepath from filename entry in metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Jul 15, 2024
1 parent 6def35d commit 902a4e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

* Fixes CDIPS support by handling columns filled with strings with empty units. [#122]

* Removes filepath from FILENAME entry in metadata. [#124]

0.4.0 (06-11-2024)
------------------

Expand Down
3 changes: 3 additions & 0 deletions lcviz/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,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, new_data_label)

Expand Down

0 comments on commit 902a4e9

Please sign in to comment.