foamlib 0.3.20__py3-none-any.whl → 0.3.21__py3-none-any.whl

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/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """A Python interface for interacting with OpenFOAM."""
2
2
 
3
- __version__ = "0.3.20"
3
+ __version__ = "0.3.21"
4
4
 
5
5
  from ._cases import (
6
6
  AsyncFoamCase,
foamlib/_files/_files.py CHANGED
@@ -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, keywords)
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: foamlib
3
- Version: 0.3.20
3
+ Version: 0.3.21
4
4
  Summary: A Python interface for interacting with OpenFOAM
5
5
  Author-email: "Gabriel S. Gerlero" <ggerlero@cimec.unl.edu.ar>
6
6
  Project-URL: Homepage, https://github.com/gerlero/foamlib
@@ -1,4 +1,4 @@
1
- foamlib/__init__.py,sha256=0oGN4oHlRUrRLVFsNNW7-Yw5JPi0R8bocZryhPxYPto,439
1
+ foamlib/__init__.py,sha256=poWVruSEPNItWo-8cFIS9rkfNoStETtky19ukEs6slE,439
2
2
  foamlib/_util.py,sha256=UMzXmTFgvbp46w6k3oEZJoYC98pFgEK6LN5uLOwrlCg,397
3
3
  foamlib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  foamlib/_cases/__init__.py,sha256=xnQpR64EvFtCh07qnSz7kjQ1IhJXjRDwaZWwQGZhGv4,280
@@ -8,12 +8,12 @@ foamlib/_cases/_sync.py,sha256=CloQgd-93jxfSXIt7J5NxcAu3N_iF3eXMKO-NfNOgi4,4522
8
8
  foamlib/_cases/_util.py,sha256=v6sHxHCEgagsVuup0S1xJW-x9py5xj3bUye8PiFfb3o,925
9
9
  foamlib/_files/__init__.py,sha256=vDkPj8u8bX_I_m2YfeKvXBgwg8D1ufyFCfHGHKN3JPQ,140
10
10
  foamlib/_files/_base.py,sha256=YA5a-i5HZuA3JslCD6r-DwZzpSA8r42dqSXef286Ako,2050
11
- foamlib/_files/_files.py,sha256=23KmcPohpSA7qysIgdlU1BTZM8Hv3HcnCKuQe9lPIL8,14292
11
+ foamlib/_files/_files.py,sha256=rH__Zk7ScS4Q2jyuOcbWnrg0NX_sMSb3D4CiK13Z03A,14277
12
12
  foamlib/_files/_io.py,sha256=hlcqQqU-1cdIbDc3YqxnMfxALo4SFAEcRIoZM2vMtnE,2083
13
13
  foamlib/_files/_parsing.py,sha256=-IgvCOFMAERNOrpw2NaHtVXubBg4Ey6xR55bzEZb2B4,7696
14
14
  foamlib/_files/_serialization.py,sha256=LCeaLWtNvkcs0dfowL7nViiByxw7U_fvgueVjFliipU,3462
15
- foamlib-0.3.20.dist-info/LICENSE.txt,sha256=5Dte9TUnLZzPRs4NQzl-Jc2-Ljd-t_v0ZR5Ng5r0UsY,35131
16
- foamlib-0.3.20.dist-info/METADATA,sha256=uFCMfFPhkAdt4BdhS91BvnaIeLJKuP0HcxlJSXeHdcw,5458
17
- foamlib-0.3.20.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
18
- foamlib-0.3.20.dist-info/top_level.txt,sha256=ZdVYtetXGwPwyfL-WhlhbTFQGAwKX5P_gXxtH9JYFPI,8
19
- foamlib-0.3.20.dist-info/RECORD,,
15
+ foamlib-0.3.21.dist-info/LICENSE.txt,sha256=5Dte9TUnLZzPRs4NQzl-Jc2-Ljd-t_v0ZR5Ng5r0UsY,35131
16
+ foamlib-0.3.21.dist-info/METADATA,sha256=cKR0bcTttWyc5lemzRQebznn09JjuHPCU53qt76zJ5Q,5458
17
+ foamlib-0.3.21.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
18
+ foamlib-0.3.21.dist-info/top_level.txt,sha256=ZdVYtetXGwPwyfL-WhlhbTFQGAwKX5P_gXxtH9JYFPI,8
19
+ foamlib-0.3.21.dist-info/RECORD,,