Skip to content

Commit

Permalink
Merge pull request #239 from gerlero/files
Browse files Browse the repository at this point in the history
Improve serialization
  • Loading branch information
gerlero authored Oct 27, 2024
2 parents fde1a8a + e65d014 commit 223f19d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion foamlib/_files/_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,11 @@ def __setitem__(
if keywords == ("internalField",) or (
len(keywords) == 3
and keywords[0] == "boundaryField"
and keywords[2] == "value"
and (
keywords[2] in ("value", "gradient")
or keywords[2].endswith("Value")
or keywords[2].endswith("Gradient")
)
):
kind = Kind.BINARY_FIELD if self.format == "binary" else Kind.FIELD
elif keywords == ("dimensions",):
Expand Down

0 comments on commit 223f19d

Please sign in to comment.