You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description @jdelsman ran into this. When calling Well.cleanup with an unstructured grid, an error is raised in the call xy_top = imod.select.points_values(top, x=x, y=y, out_of_bounds="ignore"):
ValueError: DataArray has no coordinate "x"
The text was updated successfully, but these errors were encountered:
Turned out this was luckily not caused by the call to .isel, which would render xugrid as a useless package, but it was caused by a call to .dataset.data_vars. This returns a mapping of variable names to xr.DataArrays, instead xu.UgridDataArrays.
Fixes#1539
# Description
Changes the following:
- Fix bug where UgridDataArrays where silently converted to regular
DataArrays (caused by the call to ``.data_vars``).
- Add unstructured grid test case to well tests where easily applicable.
# Checklist
- [x] Links to correct issue
- [x] Update changelog, if changes affect users
- [x] PR title starts with ``Issue #nr``, e.g. ``Issue #737``
- [x] Unit tests were added
- [ ] **If feature added**: Added/extended example
Uh oh!
There was an error while loading. Please reload this page.
Bug description
@jdelsman ran into this. When calling
Well.cleanup
with an unstructured grid, an error is raised in the callxy_top = imod.select.points_values(top, x=x, y=y, out_of_bounds="ignore")
:ValueError: DataArray has no coordinate "x"
The text was updated successfully, but these errors were encountered: