Skip to content

Integrate all data variables in UxDataset.integrate()#1531

Open
rajeeja wants to merge 6 commits into
mainfrom
rajeeja/integrate_multiple_arrays_463
Open

Integrate all data variables in UxDataset.integrate()#1531
rajeeja wants to merge 6 commits into
mainfrom
rajeeja/integrate_multiple_arrays_463

Conversation

@rajeeja

@rajeeja rajeeja commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Makes UxDataset.integrate() integrate every grid-mapped data variable (via UxDataArray.integrate()) and return a new UxDataset, replacing the old first-variable-only behavior and its deprecation warning. Non-grid variables are skipped with a warning.

Breaking change: return type is now a UxDataset (was a scalar).

Includes tests and a short showcase in the area-calc user guide.

Closes #463

rajeeja added 2 commits June 23, 2026 17:58
UxDataset.integrate() now integrates every grid-mapped data variable via
UxDataArray.integrate() and returns a new UxDataset, replacing the previous
first-variable-only behavior and its deprecation warning. Variables not
mapped to the grid are skipped with a warning.

Closes #463
@rajeeja rajeeja requested a review from erogluorhan June 23, 2026 22:59
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@rajeeja rajeeja moved this to 👀 In review in UXarray Development Jul 8, 2026

@Sevans711 Sevans711 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This looks good, I also did a quick check to run it on my end to see that it works. Let's merge to main!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

Fix UxDataset.integrate() to work for multiple data arrays in the dataset

2 participants