Skip to content

Commit

Permalink
Merge pull request #241 from gerlero/files
Browse files Browse the repository at this point in the history
Add setter for FoamFieldFile.boundary_field property
  • Loading branch information
gerlero authored Oct 27, 2024
2 parents b0b1a87 + 65a1878 commit ce0776e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions foamlib/_files/_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,3 +472,7 @@ def boundary_field(self) -> "FoamFieldFile.BoundariesSubDict":
assert not isinstance(ret, FoamFile.SubDict)
raise TypeError("boundaryField is not a dictionary")
return ret

@boundary_field.setter
def boundary_field(self, value: Mapping[str, FoamFile._Dict]) -> None:
self["boundaryField"] = value

0 comments on commit ce0776e

Please sign in to comment.