foamlib 0.1.8__py3-none-any.whl → 0.1.10__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 +1 -1
- foamlib/_dictionaries.py +19 -3
- {foamlib-0.1.8.dist-info → foamlib-0.1.10.dist-info}/METADATA +1 -1
- foamlib-0.1.10.dist-info/RECORD +10 -0
- foamlib-0.1.8.dist-info/RECORD +0 -10
- {foamlib-0.1.8.dist-info → foamlib-0.1.10.dist-info}/LICENSE.txt +0 -0
- {foamlib-0.1.8.dist-info → foamlib-0.1.10.dist-info}/WHEEL +0 -0
- {foamlib-0.1.8.dist-info → foamlib-0.1.10.dist-info}/top_level.txt +0 -0
foamlib/__init__.py
CHANGED
foamlib/_dictionaries.py
CHANGED
@@ -23,7 +23,18 @@ except ModuleNotFoundError:
|
|
23
23
|
else:
|
24
24
|
numpy = True
|
25
25
|
|
26
|
-
from pyparsing import
|
26
|
+
from pyparsing import (
|
27
|
+
Forward,
|
28
|
+
Group,
|
29
|
+
Keyword,
|
30
|
+
Literal,
|
31
|
+
Opt,
|
32
|
+
QuotedString,
|
33
|
+
Word,
|
34
|
+
common,
|
35
|
+
identchars,
|
36
|
+
identbodychars,
|
37
|
+
)
|
27
38
|
|
28
39
|
FoamDimensionSet = namedtuple(
|
29
40
|
"FoamDimensionSet",
|
@@ -66,6 +77,10 @@ A value that can be stored in an OpenFOAM dictionary.
|
|
66
77
|
|
67
78
|
_YES = Keyword("yes").set_parse_action(lambda s, loc, tks: True)
|
68
79
|
_NO = Keyword("no").set_parse_action(lambda s, loc, tks: False)
|
80
|
+
_WORDS = Word(identchars, identbodychars + "(),")[1, ...].set_parse_action(
|
81
|
+
lambda s, loc, tks: " ".join(tks)
|
82
|
+
)
|
83
|
+
_STRING = QuotedString('"', unquote_results=False)
|
69
84
|
_VALUE = Forward()
|
70
85
|
_LIST = Opt(
|
71
86
|
Literal("List") + Literal("<") + common.identifier + Literal(">")
|
@@ -73,7 +88,7 @@ _LIST = Opt(
|
|
73
88
|
(
|
74
89
|
Opt(common.integer).suppress()
|
75
90
|
+ Literal("(").suppress()
|
76
|
-
+ Group(
|
91
|
+
+ Group(_VALUE[...])
|
77
92
|
+ Literal(")").suppress()
|
78
93
|
)
|
79
94
|
| (
|
@@ -98,7 +113,8 @@ _VALUE << (
|
|
98
113
|
| common.number
|
99
114
|
| _YES
|
100
115
|
| _NO
|
101
|
-
|
|
116
|
+
| _WORDS
|
117
|
+
| _STRING
|
102
118
|
)
|
103
119
|
|
104
120
|
|
@@ -0,0 +1,10 @@
|
|
1
|
+
foamlib/__init__.py,sha256=0TpGKaLpDtb7cxLPIf2B2uVq_03YMUEZCHh4C5z4Pgs,551
|
2
|
+
foamlib/_cases.py,sha256=Q5c8vPzKT5coOy4q_H6s5gHgEArhLHByh6GSvDVCRdY,20683
|
3
|
+
foamlib/_dictionaries.py,sha256=S0bPqEZHG4AKOycoawHc-CTWBLO32PKS0Cev-CYT_-c,13147
|
4
|
+
foamlib/_subprocesses.py,sha256=5vqdQvpN_2v4GgDqxi-s88NGhZ6doFxkh0XY89ZWuHA,1926
|
5
|
+
foamlib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
foamlib-0.1.10.dist-info/LICENSE.txt,sha256=5Dte9TUnLZzPRs4NQzl-Jc2-Ljd-t_v0ZR5Ng5r0UsY,35131
|
7
|
+
foamlib-0.1.10.dist-info/METADATA,sha256=JDpXj29FPr-juOGh4EArzcO4GRDYdZFCcoRdP--Bwnc,4527
|
8
|
+
foamlib-0.1.10.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
9
|
+
foamlib-0.1.10.dist-info/top_level.txt,sha256=ZdVYtetXGwPwyfL-WhlhbTFQGAwKX5P_gXxtH9JYFPI,8
|
10
|
+
foamlib-0.1.10.dist-info/RECORD,,
|
foamlib-0.1.8.dist-info/RECORD
DELETED
@@ -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,,
|
File without changes
|
File without changes
|
File without changes
|