foamlib 0.1.8__py3-none-any.whl → 0.1.9__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,4 +1,4 @@
1
- __version__ = "0.1.8"
1
+ __version__ = "0.1.9"
2
2
 
3
3
  from ._cases import FoamCase, AsyncFoamCase, FoamTimeDirectory, FoamCaseBase
4
4
  from ._dictionaries import (
foamlib/_dictionaries.py CHANGED
@@ -23,7 +23,19 @@ except ModuleNotFoundError:
23
23
  else:
24
24
  numpy = True
25
25
 
26
- from pyparsing import Group, Keyword, Opt, ZeroOrMore, Literal, Forward, common
26
+ from pyparsing import (
27
+ Forward,
28
+ Group,
29
+ Keyword,
30
+ Literal,
31
+ OneOrMore,
32
+ Opt,
33
+ Word,
34
+ ZeroOrMore,
35
+ common,
36
+ identchars,
37
+ identbodychars,
38
+ )
27
39
 
28
40
  FoamDimensionSet = namedtuple(
29
41
  "FoamDimensionSet",
@@ -66,6 +78,9 @@ A value that can be stored in an OpenFOAM dictionary.
66
78
 
67
79
  _YES = Keyword("yes").set_parse_action(lambda s, loc, tks: True)
68
80
  _NO = Keyword("no").set_parse_action(lambda s, loc, tks: False)
81
+ _WORDS = OneOrMore(Word(identchars, identbodychars + "(),")).set_parse_action(
82
+ lambda s, loc, tks: " ".join(tks)
83
+ )
69
84
  _VALUE = Forward()
70
85
  _LIST = Opt(
71
86
  Literal("List") + Literal("<") + common.identifier + Literal(">")
@@ -91,14 +106,7 @@ _DIMENSIONED = (common.identifier + _DIMENSIONS + _VALUE).set_parse_action(
91
106
  )
92
107
 
93
108
  _VALUE << (
94
- _FIELD
95
- | _LIST
96
- | _DIMENSIONED
97
- | _DIMENSIONS
98
- | common.number
99
- | _YES
100
- | _NO
101
- | common.identifier
109
+ _FIELD | _LIST | _DIMENSIONED | _DIMENSIONS | common.number | _YES | _NO | _WORDS
102
110
  )
103
111
 
104
112
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: foamlib
3
- Version: 0.1.8
3
+ Version: 0.1.9
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
@@ -0,0 +1,10 @@
1
+ foamlib/__init__.py,sha256=BmI64MQCGyuDytUoTHlKOzKRZ5_WgQ_8mmzZ0svKnS4,550
2
+ foamlib/_cases.py,sha256=Q5c8vPzKT5coOy4q_H6s5gHgEArhLHByh6GSvDVCRdY,20683
3
+ foamlib/_dictionaries.py,sha256=zB4Ubceytn_AurfMwXMgbqfVMX4jmcMhBmgjAsK70yI,13077
4
+ foamlib/_subprocesses.py,sha256=5vqdQvpN_2v4GgDqxi-s88NGhZ6doFxkh0XY89ZWuHA,1926
5
+ foamlib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ foamlib-0.1.9.dist-info/LICENSE.txt,sha256=5Dte9TUnLZzPRs4NQzl-Jc2-Ljd-t_v0ZR5Ng5r0UsY,35131
7
+ foamlib-0.1.9.dist-info/METADATA,sha256=dGu57cfJ7lEfiec_q-se_ihdl9KC5ZWJNJetGkdPmv0,4526
8
+ foamlib-0.1.9.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
9
+ foamlib-0.1.9.dist-info/top_level.txt,sha256=ZdVYtetXGwPwyfL-WhlhbTFQGAwKX5P_gXxtH9JYFPI,8
10
+ foamlib-0.1.9.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- foamlib/__init__.py,sha256=Lq8PsAvbE-bdL4D_1TWlLVltS9_14AhRrY0xq_u-bZE,550
2
- foamlib/_cases.py,sha256=Q5c8vPzKT5coOy4q_H6s5gHgEArhLHByh6GSvDVCRdY,20683
3
- foamlib/_dictionaries.py,sha256=71E0IMfU4sxjxsHJ7-_kUyuZX6olU31OLKxFhoEvC0s,12903
4
- foamlib/_subprocesses.py,sha256=5vqdQvpN_2v4GgDqxi-s88NGhZ6doFxkh0XY89ZWuHA,1926
5
- foamlib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- foamlib-0.1.8.dist-info/LICENSE.txt,sha256=5Dte9TUnLZzPRs4NQzl-Jc2-Ljd-t_v0ZR5Ng5r0UsY,35131
7
- foamlib-0.1.8.dist-info/METADATA,sha256=lTbuF5eCAj3Nce2vHZGBS6xoQPzorYG_GMp5iogXo_A,4526
8
- foamlib-0.1.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
9
- foamlib-0.1.8.dist-info/top_level.txt,sha256=ZdVYtetXGwPwyfL-WhlhbTFQGAwKX5P_gXxtH9JYFPI,8
10
- foamlib-0.1.8.dist-info/RECORD,,