Skip to content

Commit 7d7b169

Browse files
committed
unstructure
1 parent 28437c8 commit 7d7b169

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flopy4/mf6/io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import sys
22

33
import numpy as np
4+
from cattrs import unstructure
45
from jinja2 import Environment, PackageLoader
56

67
from flopy4.mf6 import filters
@@ -30,7 +31,7 @@ def _write_ascii(self) -> None:
3031
fields = fields_dict(cls)
3132
blocks = blocks_dict(cls)
3233
template = env.get_template("blocks.jinja")
33-
iterator = template.generate(fields=fields, blocks=blocks, data=self.data) # type: ignore
34+
iterator = template.generate(fields=fields, blocks=blocks, data=unstructure(self.data)) # type: ignore
3435
# are these printoptions always applicable?
3536
with np.printoptions(precision=4, linewidth=sys.maxsize, threshold=sys.maxsize):
3637
# TODO don't hardcode the filename, maybe a filename attribute?

0 commit comments

Comments
 (0)