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

Provide correct slope for color ratios with SpectralGradient.from_color #392

Merged

Conversation

mkelley
Copy link
Member

@mkelley mkelley commented Dec 6, 2023

Addresses #389

@mkelley mkelley added this to the v0.5 milestone Dec 6, 2023
@mkelley mkelley linked an issue Dec 6, 2023 that may be closed by this pull request
@mkelley
Copy link
Member Author

mkelley commented Dec 6, 2023

To be done: rebase after #383 is merged. Update change log.

Copy link

codecov bot commented Dec 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.99%. Comparing base (035041e) to head (f5b9938).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #392   +/-   ##
=======================================
  Coverage   82.99%   82.99%           
=======================================
  Files          88       88           
  Lines        8108     8109    +1     
=======================================
+ Hits         6729     6730    +1     
  Misses       1379     1379           

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

@mkelley mkelley force-pushed the spectralgradient-fix-2023.12 branch from 5f21661 to ac9de58 Compare January 12, 2024 15:38
@pep8speaks
Copy link

pep8speaks commented Jan 12, 2024

Hello @mkelley! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 40:10: E131 continuation line unaligned for hanging indent

Comment last updated at 2024-08-28 15:09:26 UTC

@hhsieh00
Copy link
Collaborator

Sorry, just getting to this now. In the code diff view, Codecov indicates that there are several new lines not covered by tests. Is this a problem (I note that the Codecov summary report on this page says that all "coverable" lines are covered)? Otherwise, the changes look good to me.

@mkelley
Copy link
Member Author

mkelley commented Aug 28, 2024

Those reported lines don't make sense. They show up as covered in the codecov app: https://app.codecov.io/gh/NASA-Planetary-Science/sbpy/pull/392/blob/sbpy/spectroscopy/core.py

@mkelley mkelley force-pushed the spectralgradient-fix-2023.12 branch from c1c660a to 186db1b Compare August 28, 2024 13:50
@mkelley
Copy link
Member Author

mkelley commented Aug 28, 2024

I've rebased. Maybe that will fix them? If not, I think the coverage report should take precedence.

u.Magnitudes (e.g., from the difference of two VEGAmags) do not
support the unary -.  Instead mulitply by -1.
Copy link
Collaborator

@hhsieh00 hhsieh00 left a comment

Choose a reason for hiding this comment

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

Okay, that sounds fine to me. Yeah, the contradiction between the different reports is a bit strange (I still see the comments in the code diffs).

@mkelley
Copy link
Member Author

mkelley commented Aug 28, 2024

I can refresh the codecov check and it'll report 100% covered as it should. But the diff report always lists those lines as uncovered. Anyway, something to keep in mind in other reviews.

@mkelley mkelley merged commit e566f6d into NASA-Planetary-Science:main Aug 28, 2024
10 checks passed
@mkelley mkelley deleted the spectralgradient-fix-2023.12 branch August 28, 2024 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SpectralGradient.from_color is inverted for linear inputs
3 participants