Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strip filepath from filename entry in metadata #124

Merged
merged 2 commits into from
Jul 15, 2024

Conversation

kecnry
Copy link
Member

@kecnry kecnry commented Jul 12, 2024

lightkurve sets the FILENAME entry in the metadata (even if not in the original fits header), resulting in lcviz showing the full filepath in the metadata plugin. This PR replaces that with the basename to avoid exposing full filepaths (on the MAST embedded version, for example).

* originally populated by lightkurve
@kecnry kecnry added this to the 0.4.1 milestone Jul 12, 2024
@kecnry kecnry marked this pull request as ready for review July 12, 2024 15:32
@kecnry kecnry requested a review from bmorris3 July 12, 2024 15:39
Copy link

codecov bot commented Jul 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.16%. Comparing base (7b78df5) to head (8d4c62c).
Report is 35 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #124      +/-   ##
==========================================
- Coverage   93.92%   91.16%   -2.77%     
==========================================
  Files          37       41       +4     
  Lines        1598     2060     +462     
==========================================
+ Hits         1501     1878     +377     
- Misses         97      182      +85     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kecnry kecnry merged commit a317550 into spacetelescope:main Jul 15, 2024
12 of 13 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/lcviz that referenced this pull request Jul 15, 2024
@kecnry kecnry deleted the metadata-no-path branch July 15, 2024 12:08
kecnry added a commit to meeseeksmachine/lcviz that referenced this pull request Jul 15, 2024
kecnry added a commit that referenced this pull request Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants