-
Notifications
You must be signed in to change notification settings - Fork 4
🎉 init: unxt-xarray #498
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
base: main
Are you sure you want to change the base?
🎉 init: unxt-xarray #498
Conversation
d1c0f93 to
e71531b
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #498 +/- ##
=======================================
Coverage 97.45% 97.45%
=======================================
Files 43 43
Lines 1848 1848
Branches 49 49
=======================================
Hits 1801 1801
Misses 36 36
Partials 11 11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR initializes the unxt-xarray package, which provides seamless integration between unxt's JAX-based physical quantities and xarray's labeled multi-dimensional arrays through .unxt accessors.
Key Changes:
- Introduces the new
unxt-xarrayworkspace package with quantify/dequantify functionality - Adds xarray accessor registration for DataArray and Dataset objects
- Includes comprehensive test coverage with unit, conversion, and property-based tests
Reviewed changes
Copilot reviewed 20 out of 22 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Added unxt-xarray to workspace dependencies and test groups |
| packages/unxt-xarray/pyproject.toml | Package configuration for unxt-xarray |
| packages/unxt-xarray/src/unxt_xarray/init.py | Main package entry point, registers accessors |
| packages/unxt-xarray/src/unxt_xarray/_src/init.py | Internal module exports |
| packages/unxt-xarray/src/unxt_xarray/_src/accessors.py | Implements .unxt accessor for DataArray and Dataset |
| packages/unxt-xarray/src/unxt_xarray/_src/conversion.py | Core unit conversion functions for xarray objects |
| packages/unxt-xarray/tests/unit/test_accessors.py | Tests for xarray accessor functionality |
| packages/unxt-xarray/tests/unit/test_conversion.py | Tests for conversion functions |
| packages/unxt-xarray/tests/unit/test_properties.py | Property-based tests using hypothesis |
| packages/unxt-xarray/docs/index.md | Package documentation overview |
| packages/unxt-xarray/docs/xarray-guide.md | Comprehensive usage guide |
| packages/unxt-xarray/docs/_data/README.md | Documentation for sample data files |
| packages/unxt-xarray/docs/_data/generate_sample_data.py | Script to generate sample NetCDF data |
| packages/unxt-xarray/README.md | Package README with quick start |
| packages/unxt-hypothesis/docs/testing-guide.md | Minor header formatting update |
| noxfile.py | Added xarray package support to nox sessions |
| docs/packages/unxt-xarray | Symlink to package documentation |
| docs/index.md | Added unxt-xarray to documentation index |
| .github/workflows/cd-unxt-xarray.yml | CD workflow for unxt-xarray package |
| .github/copilot-instructions.md | Added documentation formatting guidelines |
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
|
@adrn I'd love some input on design decisions. Not sure this is the API we want. |
No description provided.