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.
Files changed (51) hide show
  1. {foamlib-0.8.4 → foamlib-0.8.5}/PKG-INFO +1 -1
  2. {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/__init__.py +1 -1
  3. {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_files/_parsing.py +5 -4
  4. {foamlib-0.8.4 → foamlib-0.8.5}/tests/test_files/test_parsing.py +1 -0
  5. {foamlib-0.8.4 → foamlib-0.8.5}/.devcontainer.json +0 -0
  6. {foamlib-0.8.4 → foamlib-0.8.5}/.dockerignore +0 -0
  7. {foamlib-0.8.4 → foamlib-0.8.5}/.git-blame-ignore-revs +0 -0
  8. {foamlib-0.8.4 → foamlib-0.8.5}/.github/dependabot.yml +0 -0
  9. {foamlib-0.8.4 → foamlib-0.8.5}/.github/workflows/ci.yml +0 -0
  10. {foamlib-0.8.4 → foamlib-0.8.5}/.github/workflows/docker.yml +0 -0
  11. {foamlib-0.8.4 → foamlib-0.8.5}/.github/workflows/dockerhub-description.yml +0 -0
  12. {foamlib-0.8.4 → foamlib-0.8.5}/.github/workflows/pypi-publish.yml +0 -0
  13. {foamlib-0.8.4 → foamlib-0.8.5}/.gitignore +0 -0
  14. {foamlib-0.8.4 → foamlib-0.8.5}/.readthedocs.yaml +0 -0
  15. {foamlib-0.8.4 → foamlib-0.8.5}/Dockerfile +0 -0
  16. {foamlib-0.8.4 → foamlib-0.8.5}/LICENSE.txt +0 -0
  17. {foamlib-0.8.4 → foamlib-0.8.5}/README.md +0 -0
  18. {foamlib-0.8.4 → foamlib-0.8.5}/benchmark.png +0 -0
  19. {foamlib-0.8.4 → foamlib-0.8.5}/docs/Makefile +0 -0
  20. {foamlib-0.8.4 → foamlib-0.8.5}/docs/cases.rst +0 -0
  21. {foamlib-0.8.4 → foamlib-0.8.5}/docs/conf.py +0 -0
  22. {foamlib-0.8.4 → foamlib-0.8.5}/docs/files.rst +0 -0
  23. {foamlib-0.8.4 → foamlib-0.8.5}/docs/index.rst +0 -0
  24. {foamlib-0.8.4 → foamlib-0.8.5}/docs/make.bat +0 -0
  25. {foamlib-0.8.4 → foamlib-0.8.5}/docs/ruff.toml +0 -0
  26. {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_cases/__init__.py +0 -0
  27. {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_cases/_async.py +0 -0
  28. {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_cases/_base.py +0 -0
  29. {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_cases/_run.py +0 -0
  30. {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_cases/_slurm.py +0 -0
  31. {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_cases/_subprocess.py +0 -0
  32. {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_cases/_sync.py +0 -0
  33. {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_cases/_util.py +0 -0
  34. {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_files/__init__.py +0 -0
  35. {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_files/_files.py +0 -0
  36. {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_files/_io.py +0 -0
  37. {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_files/_serialization.py +0 -0
  38. {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/_files/_types.py +0 -0
  39. {foamlib-0.8.4 → foamlib-0.8.5}/foamlib/py.typed +0 -0
  40. {foamlib-0.8.4 → foamlib-0.8.5}/logo.png +0 -0
  41. {foamlib-0.8.4 → foamlib-0.8.5}/pyproject.toml +0 -0
  42. {foamlib-0.8.4 → foamlib-0.8.5}/tests/__init__.py +0 -0
  43. {foamlib-0.8.4 → foamlib-0.8.5}/tests/ruff.toml +0 -0
  44. {foamlib-0.8.4 → foamlib-0.8.5}/tests/test_cases/__init__.py +0 -0
  45. {foamlib-0.8.4 → foamlib-0.8.5}/tests/test_cases/test_cavity.py +0 -0
  46. {foamlib-0.8.4 → foamlib-0.8.5}/tests/test_cases/test_cavity_async.py +0 -0
  47. {foamlib-0.8.4 → foamlib-0.8.5}/tests/test_cases/test_flange.py +0 -0
  48. {foamlib-0.8.4 → foamlib-0.8.5}/tests/test_cases/test_flange_async.py +0 -0
  49. {foamlib-0.8.4 → foamlib-0.8.5}/tests/test_files/__init__.py +0 -0
  50. {foamlib-0.8.4 → foamlib-0.8.5}/tests/test_files/test_dumps.py +0 -0
  51. {foamlib-0.8.4 → foamlib-0.8.5}/tests/test_files/test_files.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: foamlib
3
- Version: 0.8.4
3
+ Version: 0.8.5
4
4
  Summary: A Python interface for interacting with OpenFOAM
5
5
  Project-URL: Homepage, https://github.com/gerlero/foamlib
6
6
  Project-URL: Repository, https://github.com/gerlero/foamlib
@@ -1,6 +1,6 @@
1
1
  """A Python interface for interacting with OpenFOAM."""
2
2
 
3
- __version__ = "0.8.4"
3
+ __version__ = "0.8.5"
4
4
 
5
5
  from ._cases import (
6
6
  AsyncFoamCase,
@@ -235,11 +235,12 @@ _TENSOR = (
235
235
  | _tensor(TensorKind.SYMM_TENSOR)
236
236
  | _tensor(TensorKind.TENSOR)
237
237
  )
238
- _IDENTIFIER = Forward()
239
- _IDENTIFIER <<= Combine(
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