foamlib 0.6.1__py3-none-any.whl → 0.6.2__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.6.1"
3
+ __version__ = "0.6.2"
4
4
 
5
5
  from ._cases import (
6
6
  AsyncFoamCase,
foamlib/_cases/_run.py CHANGED
@@ -177,7 +177,7 @@ class FoamCaseRunBase(FoamCaseBase):
177
177
 
178
178
  return script
179
179
 
180
- def __run_script(self, *, parallel: Optional[bool] = None) -> Optional[Path]:
180
+ def __run_script(self, *, parallel: Optional[bool]) -> Optional[Path]:
181
181
  """Return the path to the (All)run script, or None if no run script is found."""
182
182
  run = self.path / "run"
183
183
  run_parallel = self.path / "run-parallel"
@@ -263,7 +263,7 @@ class FoamCaseRunBase(FoamCaseBase):
263
263
 
264
264
  return type(self)(dst)
265
265
 
266
- def _clean_calls(self, *, check: bool = False) -> Generator[Any, None, None]:
266
+ def _clean_calls(self, *, check: bool) -> Generator[Any, None, None]:
267
267
  script_path = self.__clean_script()
268
268
 
269
269
  if script_path is not None:
@@ -299,10 +299,10 @@ class FoamCaseRunBase(FoamCaseBase):
299
299
  self,
300
300
  cmd: Optional[Union[Sequence[Union[str, "os.PathLike[str]"]], str]] = None,
301
301
  *,
302
- parallel: Optional[bool] = None,
303
- cpus: Optional[int] = None,
304
- check: bool = True,
305
- log: bool = True,
302
+ parallel: Optional[bool],
303
+ cpus: Optional[int],
304
+ check: bool,
305
+ log: bool,
306
306
  ) -> Generator[Any, None, None]:
307
307
  if cmd is not None:
308
308
  if parallel:
foamlib/_cases/_sync.py CHANGED
@@ -105,7 +105,9 @@ class FoamCase(FoamCaseRunBase):
105
105
  :param check: If True, raise a CalledProcessError if any command returns a non-zero exit code.
106
106
  :param log: If True, log the command output to a file.
107
107
  """
108
- for _ in self._run_calls(cmd=cmd, parallel=parallel, check=check):
108
+ for _ in self._run_calls(
109
+ cmd=cmd, parallel=parallel, cpus=cpus, check=check, log=log
110
+ ):
109
111
  pass
110
112
 
111
113
  def block_mesh(self, *, check: bool = True) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: foamlib
3
- Version: 0.6.1
3
+ Version: 0.6.2
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,11 +1,11 @@
1
- foamlib/__init__.py,sha256=BVCe7vPVevu5BHTZMwbL8VQEQCStIT_j_p_4bGfVW1A,392
1
+ foamlib/__init__.py,sha256=7q60H9MQAusLbKMVlBGgR2FgYmGi08CcBEBJiCwAmf0,392
2
2
  foamlib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  foamlib/_cases/__init__.py,sha256=C0mpRu7c-X-4uVMKmVrZhwIyhBNyvUoCv0o-BQ72RC0,236
4
4
  foamlib/_cases/_async.py,sha256=8x8Mkql6XPzMjH4t-NszAEDx4gpjNPnQiWxFkHrcFJU,6436
5
5
  foamlib/_cases/_base.py,sha256=1CUkkK4afBxDgP79dmho97WJdj-GLgYhnrCSf_52Eao,6604
6
- foamlib/_cases/_run.py,sha256=0xu5V3qvWnXYJvOh0GV8DM1gOiNc65frWJF3mviHPOM,12307
6
+ foamlib/_cases/_run.py,sha256=KV5n9eBOR7nAnW1IFfvoudX2IxsJuhpXHzN7XcHnblE,12264
7
7
  foamlib/_cases/_subprocess.py,sha256=GTmHWy1LRD9ujpXJfSTXU2bf87GncpIA0VOR1rQW2fg,3633
8
- foamlib/_cases/_sync.py,sha256=PzwciC4kFfenlG0XOtbBMxd9EuQBChwxZGA3RDlmWXM,4752
8
+ foamlib/_cases/_sync.py,sha256=46cXS8ixIpWIJ76iPdnE3rqvHDjd4mF3QYH-jWbYszs,4794
9
9
  foamlib/_cases/_util.py,sha256=GNndpqw3Jg_S-Hxzl5vwRgD0czcTNb9NYHMhcfBoMBg,1493
10
10
  foamlib/_files/__init__.py,sha256=-UqB9YTH6mrJfXCX00kPTAAY20XG64u1MGPw_1ewLVs,148
11
11
  foamlib/_files/_base.py,sha256=zaFDjLE6jB7WtGWk8hfKusjLtlGu6CZV16AHJpRUibs,1929
@@ -14,8 +14,8 @@ foamlib/_files/_io.py,sha256=uSh5XlgukwJkQSLELa4mshRD2aTajNk5vr_ZsBImSeU,2423
14
14
  foamlib/_files/_parsing.py,sha256=DzgJ53QnohRQyLXn2zOs52RIQ7bJ_fS_S2Z7rmRyVK4,9023
15
15
  foamlib/_files/_serialization.py,sha256=pb8_cIVgRhGS_ZV2p3x8p5_lK1SS6xzQHscAYYuOgFY,3407
16
16
  foamlib/_files/_util.py,sha256=UMzXmTFgvbp46w6k3oEZJoYC98pFgEK6LN5uLOwrlCg,397
17
- foamlib-0.6.1.dist-info/LICENSE.txt,sha256=5Dte9TUnLZzPRs4NQzl-Jc2-Ljd-t_v0ZR5Ng5r0UsY,35131
18
- foamlib-0.6.1.dist-info/METADATA,sha256=wCN0T5tNyAtSUx5k8ehwqjX05fJDV_vBbw4j-pTqNbI,6338
19
- foamlib-0.6.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
20
- foamlib-0.6.1.dist-info/top_level.txt,sha256=ZdVYtetXGwPwyfL-WhlhbTFQGAwKX5P_gXxtH9JYFPI,8
21
- foamlib-0.6.1.dist-info/RECORD,,
17
+ foamlib-0.6.2.dist-info/LICENSE.txt,sha256=5Dte9TUnLZzPRs4NQzl-Jc2-Ljd-t_v0ZR5Ng5r0UsY,35131
18
+ foamlib-0.6.2.dist-info/METADATA,sha256=zoXLd6rEAjGbdJhQd9AMZ8oD5ME_1YqTuXYz2hGQXdE,6338
19
+ foamlib-0.6.2.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
20
+ foamlib-0.6.2.dist-info/top_level.txt,sha256=ZdVYtetXGwPwyfL-WhlhbTFQGAwKX5P_gXxtH9JYFPI,8
21
+ foamlib-0.6.2.dist-info/RECORD,,