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

Fix bug in catalog search functionality and make comparison notebook compatible with CatalogData #242

Merged
merged 5 commits into from
Jan 5, 2024

Conversation

mwcraig
Copy link
Contributor

@mwcraig mwcraig commented Jan 2, 2024

This PR started as a way to get the comparison notebook working again. Along the way I found a couple of issues in CatalogData.from_vizier that needed fixing.

Fixes #241

This fixes feder-observatory#241 by allowing the location for a catalog search to be
given as a WCS. Tests for setting the location were also added, as was
a test for the case when a FITS header has no WCS.
This should have been done when the new CatalogData was implemented in
@mwcraig mwcraig added the refactor Summer 2023 project to rewrite stellarphot label Jan 2, 2024
@mwcraig mwcraig requested a review from JuanCab January 2, 2024 17:50
@codecov-commenter
Copy link

codecov-commenter commented Jan 2, 2024

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (aa4dbe9) 54.51% compared to head (bc42b3e) 55.22%.
Report is 17 commits behind head on main.

Files Patch % Lines
stellarphot/utils/comparison_utils.py 0.00% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #242      +/-   ##
==========================================
+ Coverage   54.51%   55.22%   +0.70%     
==========================================
  Files          23       23              
  Lines        2911     2959      +48     
==========================================
+ Hits         1587     1634      +47     
- Misses       1324     1325       +1     

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

Copy link
Contributor

@JuanCab JuanCab left a comment

Choose a reason for hiding this comment

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

See the comments, the logic was sound but there were several documentation issues that I could see.

stellarphot/core.py Outdated Show resolved Hide resolved
stellarphot/core.py Show resolved Hide resolved
stellarphot/tests/test_core.py Show resolved Hide resolved
stellarphot/tests/test_core.py Outdated Show resolved Hide resolved
stellarphot/tests/test_core.py Show resolved Hide resolved
stellarphot/tests/test_core.py Show resolved Hide resolved
stellarphot/core.py Outdated Show resolved Hide resolved
stellarphot/tests/test_core.py Show resolved Hide resolved
stellarphot/core.py Show resolved Hide resolved
stellarphot/utils/comparison_utils.py Outdated Show resolved Hide resolved
Addresses a review comment pointing out that we already use "location"
for the observatory.
@mwcraig
Copy link
Contributor Author

mwcraig commented Jan 3, 2024

I think I've addressed all of your comments, thanks for the review!

Copy link
Contributor

@JuanCab JuanCab left a comment

Choose a reason for hiding this comment

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

Almost there, missing a clarification of use of r-band filter in mag_scale in comparison_utils.py.

stellarphot/core.py Show resolved Hide resolved
stellarphot/utils/comparison_utils.py Outdated Show resolved Hide resolved
@mwcraig mwcraig requested a review from JuanCab January 5, 2024 15:10
Copy link
Contributor

@JuanCab JuanCab left a comment

Choose a reason for hiding this comment

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

Looks good!

@mwcraig mwcraig merged commit 2166448 into feder-observatory:main Jan 5, 2024
9 checks passed
@mwcraig mwcraig deleted the temp-fix-notebook-2 branch February 8, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Summer 2023 project to rewrite stellarphot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CatalogData.from_vizier should accept a WCS as its first argument
3 participants