Skip to content

Commit 9ef014c

Browse files
committed
update xattree version, update xatspec usage
1 parent 6588b09 commit 9ef014c

File tree

4 files changed

+640
-673
lines changed

4 files changed

+640
-673
lines changed

flopy4/mf6/adapters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def __init__(
185185
self._data = package.data
186186
else:
187187
raise Exception("Input package has no data")
188-
self._spec = get_xatspec(type(package))
188+
self._spec = get_xatspec(type(package)).flat
189189
if modelgrid:
190190
self._grid = modelgrid
191191
elif model:

flopy4/mf6/codec/converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def structure_array(value, self_, field) -> NDArray:
2929

3030
# get spec
3131
spec = get_xatspec(type(self_))
32-
field = spec[field.name]
32+
field = spec.flat[field.name]
3333
if not field.dims:
3434
raise ValueError(f"Field {field} missing dims")
3535

0 commit comments

Comments
 (0)