Skip to content
New issue

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

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

Already on GitHub? # to your account

Markers: Save to CSV #3089

Merged
merged 6 commits into from
Jul 18, 2024
Merged

Markers: Save to CSV #3089

merged 6 commits into from
Jul 18, 2024

Conversation

pllim
Copy link
Contributor

@pllim pllim commented Jul 15, 2024

Description

This pull request is to saving to CSV.

Change log entry

  • Is a change log needed? If yes, is it added to CHANGES.rst? If you want to avoid merge conflicts,
    list the proposed change log here for review and add to CHANGES.rst before merge. If no, maintainer
    should add a no-changelog-entry-needed label.

Checklist for package maintainer(s)

This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.

  • Are two approvals required? Branch protection rule does not check for the second approval. If a second approval is not necessary, please apply the trivial label.
  • Do the proposed changes actually accomplish desired goals? Also manually run the affected example notebooks, if necessary.
  • Do the proposed changes follow the STScI Style Guides?
  • Are tests added/updated as required? If so, do they follow the STScI Style Guides?
  • Are docs added/updated as required? If so, do they follow the STScI Style Guides?
  • Did the CI pass? If not, are the failures related?
  • Is a milestone set? Set this to bugfix milestone if this is a bug fix and needs to be released ASAP; otherwise, set this to the next major release milestone. Bugfix milestone also needs an accompanying backport label.
  • After merge, any internal documentations need updating (e.g., JIRA, Innerspace)? 🐱

@pllim pllim added this to the 4.0 milestone Jul 15, 2024
@github-actions github-actions bot added imviz plugin Label for plugins common to multiple configurations labels Jul 15, 2024
Copy link

codecov bot commented Jul 15, 2024

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.

Project coverage is 88.72%. Comparing base (73e54d0) to head (65d76a8).
Report is 152 commits behind head on main.

Files with missing lines Patch % Lines
jdaviz/configs/default/plugins/markers/markers.py 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3089      +/-   ##
==========================================
- Coverage   88.76%   88.72%   -0.04%     
==========================================
  Files         111      111              
  Lines       17246    17257      +11     
==========================================
+ Hits        15308    15312       +4     
- Misses       1938     1945       +7     

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

@pllim pllim marked this pull request as ready for review July 16, 2024 00:25
@@ -4524,7 +4524,7 @@ def float_precision(column, item):
# stored in astropy table as a float so we can also store nans,
# but should display in the UI without any decimals
return f"{item:.0f}"
elif column in ('pixel', ):
elif column in ('pixel', 'pixel_x', 'pixel_y'):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This mixin is quite generic so I left 'pixel' in, just in case.

Copy link
Member

@kecnry kecnry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this considered an API breaking change? That's probably ok for a 4.0 release, but maybe we need to be a little more "loud" or specific about it in the changelog? Otherwise, looks good to me!

@pllim
Copy link
Contributor Author

pllim commented Jul 18, 2024

Is this considered an API breaking change?

Since we do not support reading this back in, I don't see this change being "breaking".

@pllim
Copy link
Contributor Author

pllim commented Jul 18, 2024

But I wouldn't backport it.

Copy link
Contributor

@cshanahan1 cshanahan1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested this out and it looks good to me

@pllim
Copy link
Contributor Author

pllim commented Jul 18, 2024

@kecnry , are you still concerned about the change log? Any suggestion?

CHANGES.rst Outdated Show resolved Hide resolved
pllim and others added 2 commits July 18, 2024 16:27
[ci skip] [rtd skip]

Co-authored-by: Kyle Conroy <kyleconroy@gmail.com>
@pllim
Copy link
Contributor Author

pllim commented Jul 18, 2024

@kecnry , okay, I accepted your suggestion and cleaned it up. Thanks! Okay for my to squash merge when CI passes?

@pllim pllim merged commit dfb4bfa into spacetelescope:main Jul 18, 2024
16 of 19 checks passed
@pllim pllim deleted the export-tbl-csv branch July 18, 2024 21:29
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
imviz plugin Label for plugins common to multiple configurations Ready for final review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants