foamlib 0.8.4__tar.gz → 0.8.5__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.8.4 → foamlib-0.8.5}/PKG-INFO +1 -1
- {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/__init__.py +1 -1
- {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_files/_parsing.py +5 -4
- {foamlib-0.8.4 → foamlib-0.8.5}/tests/test_files/test_parsing.py +1 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/.devcontainer.json +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/.dockerignore +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/.git-blame-ignore-revs +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/.github/dependabot.yml +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/.github/workflows/ci.yml +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/.github/workflows/docker.yml +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/.github/workflows/dockerhub-description.yml +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/.github/workflows/pypi-publish.yml +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/.gitignore +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/.readthedocs.yaml +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/Dockerfile +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/LICENSE.txt +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/README.md +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/benchmark.png +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/docs/Makefile +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/docs/cases.rst +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/docs/conf.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/docs/files.rst +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/docs/index.rst +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/docs/make.bat +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/docs/ruff.toml +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_cases/__init__.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_cases/_async.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_cases/_base.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_cases/_run.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_cases/_slurm.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_cases/_subprocess.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_cases/_sync.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_cases/_util.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_files/__init__.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_files/_files.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_files/_io.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_files/_serialization.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_files/_types.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/py.typed +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/logo.png +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/pyproject.toml +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/tests/__init__.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/tests/ruff.toml +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/tests/test_cases/__init__.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/tests/test_cases/test_cavity.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/tests/test_cases/test_cavity_async.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/tests/test_cases/test_flange.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/tests/test_cases/test_flange_async.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/tests/test_files/__init__.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/tests/test_files/test_dumps.py +0 -0
- {foamlib-0.8.4 → foamlib-0.8.5}/tests/test_files/test_files.py +0 -0
@@ -235,11 +235,12 @@ _TENSOR = (
|
|
235
235
|
| _tensor(TensorKind.SYMM_TENSOR)
|
236
236
|
| _tensor(TensorKind.TENSOR)
|
237
237
|
)
|
238
|
-
|
239
|
-
_IDENTIFIER
|
240
|
-
Word(_IDENTCHARS, _IDENTBODYCHARS, exclude_chars="()")
|
241
|
-
+ Opt(Literal("(") + _IDENTIFIER + Literal(")"))
|
238
|
+
_PARENTHESIZED = Forward()
|
239
|
+
_IDENTIFIER = Combine(
|
240
|
+
Word(_IDENTCHARS, _IDENTBODYCHARS, exclude_chars="()") + Opt(_PARENTHESIZED)
|
242
241
|
)
|
242
|
+
_PARENTHESIZED <<= Combine(Literal("(") + (_PARENTHESIZED | _IDENTIFIER) + Literal(")"))
|
243
|
+
|
243
244
|
_DIMENSIONED = (Opt(_IDENTIFIER) + _DIMENSIONS + _TENSOR).set_parse_action(
|
244
245
|
lambda tks: Dimensioned(*reversed(tks.as_list()))
|
245
246
|
)
|
@@ -93,6 +93,7 @@ def test_parse_value() -> None:
|
|
93
93
|
assert Parsed(b"(water oil mercury air)")[()] == ["water", "oil", "mercury", "air"]
|
94
94
|
assert Parsed(b"div(phi,U)")[()] == "div(phi,U)"
|
95
95
|
assert Parsed(b"div(nuEff*dev(T(grad(U))))")[()] == "div(nuEff*dev(T(grad(U))))"
|
96
|
+
assert Parsed(b"div((nuEff*dev(T(grad(U)))))")[()] == "div((nuEff*dev(T(grad(U)))))"
|
96
97
|
assert Parsed(b"((air and water) { type constant; sigma 0.07; })")[()] == [
|
97
98
|
(["air", "and", "water"], {"type": "constant", "sigma": 0.07})
|
98
99
|
]
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|