foamlib 0.3.20__tar.gz → 0.3.21__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {foamlib-0.3.20 → foamlib-0.3.21}/PKG-INFO +1 -1
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib/__init__.py +1 -1
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib/_files/_files.py +4 -5
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib.egg-info/PKG-INFO +1 -1
- {foamlib-0.3.20 → foamlib-0.3.21}/LICENSE.txt +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/README.md +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib/_cases/__init__.py +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib/_cases/_async.py +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib/_cases/_base.py +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib/_cases/_sync.py +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib/_cases/_util.py +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib/_files/__init__.py +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib/_files/_base.py +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib/_files/_io.py +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib/_files/_parsing.py +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib/_files/_serialization.py +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib/_util.py +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib/py.typed +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib.egg-info/SOURCES.txt +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib.egg-info/dependency_links.txt +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib.egg-info/requires.txt +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/foamlib.egg-info/top_level.txt +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/pyproject.toml +0 -0
- {foamlib-0.3.20 → foamlib-0.3.21}/setup.cfg +0 -0
@@ -92,6 +92,9 @@ class FoamFile(
|
|
92
92
|
class Header(SubDict):
|
93
93
|
"""The header of an OpenFOAM file."""
|
94
94
|
|
95
|
+
def __init__(self, _file: "FoamFile") -> None:
|
96
|
+
super().__init__(_file, ("FoamFile",))
|
97
|
+
|
95
98
|
@property
|
96
99
|
def version(self) -> float:
|
97
100
|
"""Alias of `self["version"]`."""
|
@@ -173,16 +176,12 @@ class FoamFile(
|
|
173
176
|
|
174
177
|
if value is ...:
|
175
178
|
if keywords == ("FoamFile",):
|
176
|
-
return FoamFile.Header(self
|
179
|
+
return FoamFile.Header(self)
|
177
180
|
else:
|
178
181
|
return FoamFile.SubDict(self, keywords)
|
179
182
|
else:
|
180
183
|
return value
|
181
184
|
|
182
|
-
@property
|
183
|
-
def _binary(self) -> bool:
|
184
|
-
return self.get(("FoamFile", "format"), None) == "binary"
|
185
|
-
|
186
185
|
def __setitem__(
|
187
186
|
self, keywords: Union[str, Tuple[str, ...]], data: "FoamFile._SetData"
|
188
187
|
) -> None:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|