Skip to content

Bounding box subsetting error #1285

Closed

Description

@kafitzgerald

Version

v2025.05.2

How did you install UXarray?

Conda

What happened?

When parameters are provided to bounding_box such that no polygons return (i.e. the box is so small no polygons are included) it fails with a ValueError from some Xarray code (see below). We're seeing this over in the UXarray Cookbook at the moment as a CI failure: ProjectPythia/unstructured-grid-viz-cookbook#28

What did you expect to happen?

Returning an empty UXarray with no error would be ideal I think.

If that's painful to implement, a more descriptive error would be a helpful start.

Can you provide a MCVE to repoduce the bug?

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

Priority

None yet

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions