FourCIPP 1.23.0__py3-none-any.whl → 1.25.0__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.
@@ -1,5 +1,5 @@
1
1
  metadata:
2
- commit_hash: 262e1be1daabe544ce5559a8c52830f3c740f284
2
+ commit_hash: 37fa31a1e6bd9674c05cf4a8e56854212c075a1e
3
3
  version: 2025.4.0-dev
4
4
  description_section_name: TITLE
5
5
  legacy_element_specs:
@@ -76997,16 +76997,6 @@ sections:
76997
76997
  description: "Do you want to have binary output?"
76998
76998
  required: false
76999
76999
  default: true
77000
- - name: OUTPUT_EVERY_ITER
77001
- type: bool
77002
- description: "Do you desire structural displ. output every Newton iteration"
77003
- required: false
77004
- default: false
77005
- - name: OEI_FILE_COUNTER
77006
- type: int
77007
- description: "Add an output name affix by introducing a additional number"
77008
- required: false
77009
- default: 0
77010
77000
  - name: ELEMENT_MAT_ID
77011
77001
  type: bool
77012
77002
  description: "Output of the material id of each element"
@@ -77191,32 +77181,6 @@ sections:
77191
77181
  description: "write restart every RESTARTEVERY steps"
77192
77182
  required: false
77193
77183
  default: -1
77194
- - name: IO/EVERY ITERATION
77195
- type: group
77196
- required: false
77197
- specs:
77198
- - type: all_of
77199
- specs:
77200
- - name: OUTPUT_EVERY_ITER
77201
- type: bool
77202
- description: "Do you wish output every Newton iteration?"
77203
- required: false
77204
- default: false
77205
- - name: RUN_NUMBER
77206
- type: int
77207
- description: "Create a new folder for different runs of the same simulation. If equal -1, no folder is created."
77208
- required: false
77209
- default: -1
77210
- - name: STEP_NP_NUMBER
77211
- type: int
77212
- description: "Give the number of the step (i.e. step_{n+1}) for which you want to write the debug output. If a negative step number is provided, all steps willbe written."
77213
- required: false
77214
- default: -1
77215
- - name: WRITE_OWNER_EACH_NEWTON_ITER
77216
- type: bool
77217
- description: "If yes, the ownership of elements and nodes are written each Newton step, instead of only once per time/load step."
77218
- required: false
77219
- default: false
77220
77184
  - name: IO/MONITOR STRUCTURE DBC
77221
77185
  type: group
77222
77186
  required: false
@@ -1,5 +1,5 @@
1
1
  {
2
- "description": "Schema for 4C\nCommit hash: 262e1be1daabe544ce5559a8c52830f3c740f284\nVersion: 2025.4.0-dev",
2
+ "description": "Schema for 4C\nCommit hash: 37fa31a1e6bd9674c05cf4a8e56854212c075a1e\nVersion: 2025.4.0-dev",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "ALE DOMAIN": {
@@ -131486,18 +131486,6 @@
131486
131486
  "default": true,
131487
131487
  "type": "boolean"
131488
131488
  },
131489
- "OUTPUT_EVERY_ITER": {
131490
- "title": "OUTPUT_EVERY_ITER (bool)",
131491
- "description": "Do you desire structural displ. output every Newton iteration",
131492
- "default": false,
131493
- "type": "boolean"
131494
- },
131495
- "OEI_FILE_COUNTER": {
131496
- "title": "OEI_FILE_COUNTER (int)",
131497
- "description": "Add an output name affix by introducing a additional number",
131498
- "default": 0,
131499
- "type": "integer"
131500
- },
131501
131489
  "ELEMENT_MAT_ID": {
131502
131490
  "title": "ELEMENT_MAT_ID (bool)",
131503
131491
  "description": "Output of the material id of each element",
@@ -131728,38 +131716,6 @@
131728
131716
  },
131729
131717
  "additionalProperties": false
131730
131718
  },
131731
- "IO/EVERY ITERATION": {
131732
- "title": "IO/EVERY ITERATION (group)",
131733
- "description": "No description yet.",
131734
- "type": "object",
131735
- "properties": {
131736
- "OUTPUT_EVERY_ITER": {
131737
- "title": "OUTPUT_EVERY_ITER (bool)",
131738
- "description": "Do you wish output every Newton iteration?",
131739
- "default": false,
131740
- "type": "boolean"
131741
- },
131742
- "RUN_NUMBER": {
131743
- "title": "RUN_NUMBER (int)",
131744
- "description": "Create a new folder for different runs of the same simulation. If equal -1, no folder is created.",
131745
- "default": -1,
131746
- "type": "integer"
131747
- },
131748
- "STEP_NP_NUMBER": {
131749
- "title": "STEP_NP_NUMBER (int)",
131750
- "description": "Give the number of the step (i.e. step_{n+1}) for which you want to write the debug output. If a negative step number is provided, all steps willbe written.",
131751
- "default": -1,
131752
- "type": "integer"
131753
- },
131754
- "WRITE_OWNER_EACH_NEWTON_ITER": {
131755
- "title": "WRITE_OWNER_EACH_NEWTON_ITER (bool)",
131756
- "description": "If yes, the ownership of elements and nodes are written each Newton step, instead of only once per time/load step.",
131757
- "default": false,
131758
- "type": "boolean"
131759
- }
131760
- },
131761
- "additionalProperties": false
131762
- },
131763
131719
  "IO/MONITOR STRUCTURE DBC": {
131764
131720
  "title": "IO/MONITOR STRUCTURE DBC (group)",
131765
131721
  "description": "No description yet.",
@@ -401187,5 +401143,5 @@
401187
401143
  "PROBLEM TYPE"
401188
401144
  ],
401189
401145
  "$schema": "https://json-schema.org/draft/2020-12/schema",
401190
- "$id": "262e1be1daabe544ce5559a8c52830f3c740f284"
401146
+ "$id": "37fa31a1e6bd9674c05cf4a8e56854212c075a1e"
401191
401147
  }
@@ -121,12 +121,15 @@ def _entry_casting_factory(spec: dict) -> LineListExtractor:
121
121
  Returns:
122
122
  Casting function for the spec
123
123
  """
124
- if spec["type"] in Primitive.PRIMITIVE_TYPES_TO_PYTHON:
125
- return partial(
126
- _extract_entry, extractor=Primitive.PRIMITIVE_TYPES_TO_PYTHON[spec["type"]]
127
- )
124
+
125
+ primitive_extractors = Primitive.PRIMITIVE_TYPES_TO_PYTHON.copy()
126
+ primitive_extractors["bool"] = lambda v: {"true": True, "false": False}[v]
127
+
128
+ if spec["type"] in primitive_extractors:
129
+ extractor = primitive_extractors[spec["type"]]
130
+ return partial(_extract_entry, extractor=extractor)
128
131
  elif spec["type"] == "vector":
129
- value_type = Primitive.PRIMITIVE_TYPES_TO_PYTHON[spec["value_type"]["type"]]
132
+ value_type = primitive_extractors[spec["value_type"]["type"]]
130
133
  return partial(_extract_vector, extractor=value_type, size=spec["size"])
131
134
  elif spec["type"] == "enum":
132
135
  choices = [s["name"] for s in spec["choices"]]
@@ -295,7 +295,7 @@ class One_Of:
295
295
 
296
296
  class Primitive(InputSpec):
297
297
  PRIMITIVE_TYPES: list[str] = ["double", "bool", "int", "string", "path"]
298
- PRIMITIVE_TYPES_TO_PYTHON: dict[str, type] = {
298
+ PRIMITIVE_TYPES_TO_PYTHON: dict[str, type | Callable] = {
299
299
  "double": float,
300
300
  "bool": bool,
301
301
  "int": int,
fourcipp/version.py CHANGED
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '1.23.0'
32
- __version_tuple__ = version_tuple = (1, 23, 0)
31
+ __version__ = version = '1.25.0'
32
+ __version_tuple__ = version_tuple = (1, 25, 0)
33
33
 
34
34
  __commit_id__ = commit_id = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: FourCIPP
3
- Version: 1.23.0
3
+ Version: 1.25.0
4
4
  Summary: A streamlined Python Parser for 4C input files
5
5
  Author: FourCIPP Authors
6
6
  License: The MIT License (MIT)
@@ -1,12 +1,12 @@
1
1
  fourcipp/__init__.py,sha256=4pz7DVXErSbUcLqPTaHnQfdJzKkpfZDivBqbHbTgpRE,1388
2
2
  fourcipp/fourc_input.py,sha256=1-EMbwc5tWbWtbZqzRF4_ytrvkcQVgtC5ZX1uz6NFuQ,23954
3
- fourcipp/version.py,sha256=P3XffA-p9h5BxuyWJHU1dJZQu36UzXx5XFNcAuWmEmQ,706
4
- fourcipp/config/4C_metadata.yaml,sha256=byWXEz8Ye9yH6aFotCkx_82IHgJBPXfrlggGCnANQxI,11888807
5
- fourcipp/config/4C_schema.json,sha256=Ne47pWykevdLz3eByQ_paNtlSNpKc2PbXdm1WMedvGQ,16495098
3
+ fourcipp/version.py,sha256=R81gORYF1NfYL6QjkEQ0pDs6XD7HgxQcT2joD2_hfcw,706
4
+ fourcipp/config/4C_metadata.yaml,sha256=Ibxgfxv0GzWW9xV-8n_po7Om_FoOKH5gbYHY9ugPl9E,11887255
5
+ fourcipp/config/4C_schema.json,sha256=RVWI9cL8BjyFtGEBiEd49M0HKxkcXLgFGPe4VBz-A4A,16493324
6
6
  fourcipp/config/config.yaml,sha256=n2c2a6E4HKfAdNWOQz1kLUuf5p4NLxIddaAi2t5eM38,460
7
7
  fourcipp/legacy_io/__init__.py,sha256=L3MWW-WjPbPAJVX8Z0Uheftn0dRPnqNnSBic3uloFhI,5750
8
8
  fourcipp/legacy_io/element.py,sha256=rP8F-m-8ZCwCxtV_OASvvLeNYr01zsmgZsDZSJ_G1gY,3977
9
- fourcipp/legacy_io/inline_dat.py,sha256=t8eMmJ_mAK7kKYAhNNlsES9JbZ760DHR0101Mj9vkSQ,6723
9
+ fourcipp/legacy_io/inline_dat.py,sha256=wqXM8dNEcTrx6Ek_6mrAE9dWk53NC0T4kOTD_auw2vQ,6837
10
10
  fourcipp/legacy_io/node.py,sha256=e7m0W7dai_b1XgaqD37k3QS44ySCas3HetmyTLS9_78,3522
11
11
  fourcipp/legacy_io/node_topology.py,sha256=hqGGzhyNhFX-BMW8SzztfzM8zoZLLltVScMv-p4hDH0,5394
12
12
  fourcipp/legacy_io/particle.py,sha256=8LoRsyKVfhl5Qf_EoO8vLmbH0QSpB_Nho464ifkHAZc,2172
@@ -15,14 +15,14 @@ fourcipp/utils/cli.py,sha256=Tn9jx0KhC421zv-DMpqNU2hpb6fyi4-r4qV17f-ts4Y,5807
15
15
  fourcipp/utils/configuration.py,sha256=_9Yo_2Rxw1QDhib9OV_MjLXBhVPfIBA2qmdOG3EuIKU,6467
16
16
  fourcipp/utils/converter.py,sha256=D40YQ96WqPEEpB7fwAB5XC2v-jRki4v1sIJ-ngO08nU,5194
17
17
  fourcipp/utils/dict_utils.py,sha256=uC0uaBNP3Wh2v3kFy9JHnAYARMukAN4cl40pmiBT13Y,12891
18
- fourcipp/utils/metadata.py,sha256=wYu07eCrOTNHSnhDxHyQzF6OU8D_2ZuJfytiIpn3sxY,30895
18
+ fourcipp/utils/metadata.py,sha256=TxKmpx-Mb3VeR6okUUtHDo0TwGcKxpyCtCExzphFEPU,30906
19
19
  fourcipp/utils/not_set.py,sha256=NHf0UXDmTuZfvfnIIgkkx4EohxRsN4MVUHUpt7VOnaQ,2433
20
20
  fourcipp/utils/type_hinting.py,sha256=izPEhbMdmhrIBamCLqqF_6iDZW-w7a8kplUugbQILyw,1714
21
21
  fourcipp/utils/validation.py,sha256=FejHOj1MddaU7gEpMN-f8Mz3rYjflakd1qcsKnctHqA,5292
22
22
  fourcipp/utils/yaml_io.py,sha256=jPgVnxE858XTpDC6BVhfbbljQegL58zc3u2VPYCTvGE,5771
23
- fourcipp-1.23.0.dist-info/licenses/LICENSE,sha256=lkSOHdH9IZ8c3Vnz0fFjqls1cRlmLADBP8QEIwUlH3o,1082
24
- fourcipp-1.23.0.dist-info/METADATA,sha256=yz8KwsiLIpQUbL0yBlDjRMatYF8n3geubVdzMeDbTEI,7916
25
- fourcipp-1.23.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
- fourcipp-1.23.0.dist-info/entry_points.txt,sha256=44XBG4bwhuq1EwOZ0U055HYP8_qN6_d30ecVsa5Igng,53
27
- fourcipp-1.23.0.dist-info/top_level.txt,sha256=oZ6jgFFmvi157VwGUEFuKT3D8oS5mOkpOVx8zZURZrQ,9
28
- fourcipp-1.23.0.dist-info/RECORD,,
23
+ fourcipp-1.25.0.dist-info/licenses/LICENSE,sha256=lkSOHdH9IZ8c3Vnz0fFjqls1cRlmLADBP8QEIwUlH3o,1082
24
+ fourcipp-1.25.0.dist-info/METADATA,sha256=L76lYeCupl3aGYXkldHxokbMVqLgCBsyuq0-E1EYRL4,7916
25
+ fourcipp-1.25.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
+ fourcipp-1.25.0.dist-info/entry_points.txt,sha256=44XBG4bwhuq1EwOZ0U055HYP8_qN6_d30ecVsa5Igng,53
27
+ fourcipp-1.25.0.dist-info/top_level.txt,sha256=oZ6jgFFmvi157VwGUEFuKT3D8oS5mOkpOVx8zZURZrQ,9
28
+ fourcipp-1.25.0.dist-info/RECORD,,