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

Document and check WCS usage for to_sky option in subset-to-region translator; add tests #97

Merged
merged 4 commits into from
Oct 20, 2023

Conversation

cshanahan1
Copy link
Contributor

@cshanahan1 cshanahan1 commented Oct 11, 2023

Closing https://github.com/glue-viz/glue-astronomy/pull/96/files as the workaround in there can go directly in Jdaviz, but keeping changes to docstring/tests for the roi_subset_state_to_region function. Not including a change log entry for this.

glue_astronomy/translators/regions.py Outdated Show resolved Hide resolved
glue_astronomy/translators/regions.py Outdated Show resolved Hide resolved
glue_astronomy/translators/tests/test_regions.py Outdated Show resolved Hide resolved
glue_astronomy/translators/tests/test_regions.py Outdated Show resolved Hide resolved
glue_astronomy/translators/tests/test_regions.py Outdated Show resolved Hide resolved
glue_astronomy/translators/tests/test_regions.py Outdated Show resolved Hide resolved
Copy link
Contributor

@pllim pllim left a comment

Choose a reason for hiding this comment

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

Much cleaner now. Thanks!

@dhomeier would need to enable the CI and do a final review.

Copy link
Contributor

@dhomeier dhomeier left a comment

Choose a reason for hiding this comment

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

Thanks, looks great, tests just were not run due to some codestyle failures.

glue_astronomy/translators/tests/test_regions.py Outdated Show resolved Hide resolved
glue_astronomy/translators/tests/test_regions.py Outdated Show resolved Hide resolved
glue_astronomy/translators/tests/test_regions.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e895db9) 96.90% compared to head (aa305d7) 96.68%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #97      +/-   ##
==========================================
- Coverage   96.90%   96.68%   -0.22%     
==========================================
  Files          18       18              
  Lines        1421     1448      +27     
==========================================
+ Hits         1377     1400      +23     
- Misses         44       48       +4     
Files Coverage Δ
glue_astronomy/translators/regions.py 92.25% <100.00%> (+0.10%) ⬆️
glue_astronomy/translators/tests/test_regions.py 99.39% <100.00%> (+0.05%) ⬆️

... and 2 files with indirect coverage changes

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

@dhomeier
Copy link
Contributor

@pllim do you know if a spectral_cube release with your fix is planned, or should we move that to dev-deps at least for now, to unbreak astropy-dev?

@pllim
Copy link
Contributor

pllim commented Oct 17, 2023

spectral-cube release is up to @keflavich or @astrofrog , I think?

@keflavich
Copy link
Contributor

@e-koch might also be able to help, but we're probably not issuing a release before Oct 25

@pllim
Copy link
Contributor

pllim commented Oct 17, 2023

Maybe it is time to seriously think about:

@dhomeier dhomeier added the documentation Improvements or additions to documentation label Oct 17, 2023
@dhomeier
Copy link
Contributor

Having run into the same radio-beam trap now, I tend to agree.

@e-koch
Copy link

e-koch commented Oct 17, 2023

@dhomeier does radio-beam also just need a new release? Or is there another issue?

@dhomeier
Copy link
Contributor

Having all imported in sync from the dev branches in #98 resolves the issue now; it's probably more problematic for downstream packages that are not explicitly testing spectral_cube and deps.

@keflavich
Copy link
Contributor

we pushed a new release. If either of you would like to join on as maintainers to help with the release cycle, let us know.

@dhomeier
Copy link
Contributor

dhomeier commented Oct 20, 2023

we pushed a new release. If either of you would like to join on as maintainers to help with the release cycle, let us know.

Thanks, re-running the tests with the updates fixed everything!

I know virtually nothing about radio-beam, but would be interested in staying up to date with spectral-cube-specutils integration.

@dhomeier dhomeier changed the title Subset region tests Document and check WCS usage for to_sky option in subset-to-region translator; add tests Oct 20, 2023
@dhomeier dhomeier merged commit 0ef7d6b into glue-viz:main Oct 20, 2023
13 of 14 checks passed
@e-koch
Copy link

e-koch commented Oct 20, 2023

Thanks, @dhomeier -- radio-beam is quite lightweight, and helping with just the release cycle would very likely keep it from being an issue in the future. The codebase is quite stable at this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants