We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28437c8 commit 7d7b169Copy full SHA for 7d7b169
flopy4/mf6/io.py
@@ -1,6 +1,7 @@
1
import sys
2
3
import numpy as np
4
+from cattrs import unstructure
5
from jinja2 import Environment, PackageLoader
6
7
from flopy4.mf6 import filters
@@ -30,7 +31,7 @@ def _write_ascii(self) -> None:
30
31
fields = fields_dict(cls)
32
blocks = blocks_dict(cls)
33
template = env.get_template("blocks.jinja")
- 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
35
# are these printoptions always applicable?
36
with np.printoptions(precision=4, linewidth=sys.maxsize, threshold=sys.maxsize):
37
# TODO don't hardcode the filename, maybe a filename attribute?
0 commit comments