foamlib 0.3.21__tar.gz → 0.3.22__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.21 → foamlib-0.3.22}/PKG-INFO +1 -1
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib/__init__.py +1 -1
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib/_cases/_async.py +7 -4
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib.egg-info/PKG-INFO +1 -1
- {foamlib-0.3.21 → foamlib-0.3.22}/LICENSE.txt +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/README.md +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib/_cases/__init__.py +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib/_cases/_base.py +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib/_cases/_sync.py +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib/_cases/_util.py +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib/_files/__init__.py +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib/_files/_base.py +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib/_files/_files.py +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib/_files/_io.py +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib/_files/_parsing.py +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib/_files/_serialization.py +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib/_util.py +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib/py.typed +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib.egg-info/SOURCES.txt +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib.egg-info/dependency_links.txt +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib.egg-info/requires.txt +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/foamlib.egg-info/top_level.txt +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/pyproject.toml +0 -0
- {foamlib-0.3.21 → foamlib-0.3.22}/setup.cfg +0 -0
@@ -131,10 +131,13 @@ class AsyncFoamCase(FoamCaseBase):
|
|
131
131
|
cmd=cmd, script=script, parallel=parallel, check=check
|
132
132
|
):
|
133
133
|
if cpus is None:
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
134
|
+
if name == "run":
|
135
|
+
if kwargs.get("parallel", False):
|
136
|
+
cpus = max(self._nprocessors, 1)
|
137
|
+
else:
|
138
|
+
cpus = 1
|
139
|
+
else:
|
140
|
+
cpus = 0
|
138
141
|
|
139
142
|
async with self._cpus(cpus):
|
140
143
|
await getattr(self, name)(*args, **kwargs)
|
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
|