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

Tests for Dataset.crop() #310

Merged
merged 47 commits into from
Jan 7, 2025
Merged

Tests for Dataset.crop() #310

merged 47 commits into from
Jan 7, 2025

Conversation

SolarDrew
Copy link
Contributor

Adds test for various different use-cases of crop with a couple of datasets from different instruments. Depends on spacetelescope/gwcs#457 for a number of gWCS fixes.

Copy link

codecov bot commented Nov 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.68%. Comparing base (3c5e094) to head (00cf119).

Current head 00cf119 differs from pull request most recent head dc80bce

Please upload reports for the commit dc80bce to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #310      +/-   ##
==========================================
+ Coverage   97.03%   97.68%   +0.65%     
==========================================
  Files          65       32      -33     
  Lines        4009     1855    -2154     
==========================================
- Hits         3890     1812    -2078     
+ Misses        119       43      -76     

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

@Cadair Cadair marked this pull request as draft January 16, 2024 15:22
Copy link

codspeed-hq bot commented May 20, 2024

CodSpeed Performance Report

Merging #310 will not alter performance

Comparing SolarDrew:bugfix-192 (b052683) with main (f650849)

Summary

✅ 11 untouched benchmarks

tox.ini Outdated Show resolved Hide resolved
@Cadair
Copy link
Member

Cadair commented Jan 6, 2025

This has suspiciously worked?

@SolarDrew SolarDrew marked this pull request as ready for review January 6, 2025 11:46
@SolarDrew
Copy link
Contributor Author

I think this is now just waiting on an actual release of gwcs, assuming the next one is 0.22.2 and includes spacetelescope/gwcs#457 . At that point the devdeps build should pass without any further changes here and everything will be wonderful and lovely.

@SolarDrew
Copy link
Contributor Author

Oh wait that build is passing and it shouldn't be. Never mind.

import astropy.units as u
from astropy.coordinates import SkyCoord, SpectralCoord, StokesCoord
from astropy.time import Time

gwcs = pytest.importorskip("gwcs", "0.22.2")
Copy link
Member

Choose a reason for hiding this comment

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

I was thinking more in the test which needed this, but if they all do this is fine.

@Cadair Cadair enabled auto-merge (squash) January 7, 2025 09:34
@Cadair Cadair merged commit 99dee77 into DKISTDC:main Jan 7, 2025
21 of 24 checks passed
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