foamlib 0.3.2__tar.gz → 0.3.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: foamlib
3
- Version: 0.3.2
3
+ Version: 0.3.3
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,6 +1,6 @@
1
1
  """A Python interface for interacting with OpenFOAM."""
2
2
 
3
- __version__ = "0.3.2"
3
+ __version__ = "0.3.3"
4
4
 
5
5
  from ._cases import AsyncFoamCase, FoamCase, FoamCaseBase
6
6
  from ._files import FoamDict, FoamFieldFile, FoamFile
@@ -32,7 +32,7 @@ from ._util import is_sequence, run_process, run_process_async
32
32
 
33
33
 
34
34
  class FoamCaseBase(Sequence["FoamCaseBase.TimeDirectory"]):
35
- def __init__(self, path: Union[Path, str]):
35
+ def __init__(self, path: Union[Path, str] = Path()):
36
36
  self.path = Path(path).absolute()
37
37
  if not self.path.is_dir():
38
38
  raise NotADirectoryError(f"{self.path} is not a directory")
@@ -27,7 +27,7 @@ from pyparsing import (
27
27
  c_style_comment,
28
28
  common,
29
29
  cpp_style_comment,
30
- identbodychars,
30
+ identchars,
31
31
  printables,
32
32
  )
33
33
 
@@ -83,7 +83,7 @@ _DIMENSIONS = (
83
83
  Literal("[").suppress() + common.number * 7 + Literal("]").suppress()
84
84
  ).set_parse_action(lambda tks: FoamDict.DimensionSet(*tks))
85
85
  _TENSOR = _list_of(common.number) | common.number
86
- _IDENTIFIER = Word(identbodychars + "$", printables.replace(";", ""))
86
+ _IDENTIFIER = Word(identchars + "$", printables, exclude_chars=";")
87
87
  _DIMENSIONED = (Opt(_IDENTIFIER) + _DIMENSIONS + _TENSOR).set_parse_action(
88
88
  lambda tks: FoamDict.Dimensioned(*reversed(tks.as_list()))
89
89
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: foamlib
3
- Version: 0.3.2
3
+ Version: 0.3.3
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes