Skip to content

Commit 6f77168

Browse files
mjrenomjreno
authored andcommitted
add additional spec check
1 parent 44bebaa commit 6f77168

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

flopy4/mf6/interface/flopy3.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ def __init__(
185185
self._dlist = list()
186186

187187
for a in self._data.attrs:
188-
if self._data.attrs[a] is not None:
188+
if (
189+
self._data.attrs[a] is not None
190+
and self._spec.flat[a].type is not None
191+
):
189192
d_fp3 = Flopy3Data(
190193
name=a,
191194
modelname=self.parent,

0 commit comments

Comments
 (0)