Skip to content

Feature/xr engine aux coords#969

Merged
sandorkertesz merged 5 commits into
developfrom
feature/xr-engine-aux-coords
Apr 23, 2026
Merged

Feature/xr engine aux coords#969
sandorkertesz merged 5 commits into
developfrom
feature/xr-engine-aux-coords

Conversation

@pawel-wolff
Copy link
Copy Markdown
Contributor

@pawel-wolff pawel-wolff commented Apr 23, 2026

Description

This PR adds the aux_coords kwarg to the Xarray engine. It allows to declare 1- or multi-dimensional auxiliary coordinate variables whose values are derived from any metadata key (format-agnostic, format-specific or virtual, issued from remapping). The value of aux_coords, if not None, should be a dictionary with:

  • key: an auxiliary coordinate label
  • value: (metadata_key: str, dataset_dimension(s): str or iterable of str)

Dedicated tests added.

A new how-to notebook added.

As an extra:

  • ListDiff._compare improved and now provides a sensible error when data do not form a hypercube

Contributor Declaration

By opening this pull request, I affirm the following:

  • All authors agree to the Contributor License Agreement.
  • The code follows the project's coding standards.
  • I have performed self-review and added comments where needed.
  • I have added or updated tests to verify that my changes are effective and functional.
  • I have run all existing tests and confirmed they pass.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.38%. Comparing base (5eb79ea) to head (5c7cf24).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #969      +/-   ##
===========================================
+ Coverage    81.26%   81.38%   +0.12%     
===========================================
  Files          223      224       +1     
  Lines        14624    14719      +95     
  Branches       718      718              
===========================================
+ Hits         11884    11979      +95     
  Misses        2521     2521              
  Partials       219      219              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sandorkertesz sandorkertesz merged commit 4422519 into develop Apr 23, 2026
134 of 144 checks passed
@sandorkertesz sandorkertesz deleted the feature/xr-engine-aux-coords branch April 23, 2026 16:03
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.

3 participants