math-spec-mapping 0.3.11__tar.gz → 0.3.12__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {math_spec_mapping-0.3.11/src/math_spec_mapping.egg-info → math_spec_mapping-0.3.12}/PKG-INFO +1 -1
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/pyproject.toml +1 -1
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/parameters.py +13 -2
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/state.py +23 -5
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12/src/math_spec_mapping.egg-info}/PKG-INFO +1 -1
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/LICENSE +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/README.md +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/setup.cfg +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/ActionTransmissionChannel.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/Block.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/BoundaryAction.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/ControlAction.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/Entity.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/MathSpec.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/Mechanism.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/Metric.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/Parameter.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/Policy.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/Space.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/State.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/StateUpdateTransmissionChannel.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/StatefulMetric.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/Type.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/__init__.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Convenience/__init__.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Convenience/documentation.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Convenience/starter.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/__init__.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/action_transmission_channel.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/boundary_actions.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/control_actions.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/displays.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/entities.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/general.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/implementations.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/load.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/mechanism.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/metrics.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/parameters.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/policy.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/spaces.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/state_update_transmission_channels.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/stateful_metrics.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/states.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/type.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/wiring.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/__init__.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/boundary_actions.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/control_actions.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/general.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/html.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/markdown.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/mechanisms.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/node_map.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/policies.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/spaces.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/tables.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/wiring.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/__init__.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/schema.py +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/schema.schema.json +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping.egg-info/SOURCES.txt +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping.egg-info/dependency_links.txt +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping.egg-info/requires.txt +0 -0
- {math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping.egg-info/top_level.txt +0 -0
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/parameters.py
RENAMED
@@ -15,7 +15,9 @@ def write_out_params(ms: MathSpec, params: List[str]) -> str:
|
|
15
15
|
return out
|
16
16
|
|
17
17
|
|
18
|
-
def write_parameter_table_markdown(
|
18
|
+
def write_parameter_table_markdown(
|
19
|
+
ms, initial_values=None, links=False, compress_arrays=False
|
20
|
+
):
|
19
21
|
if initial_values:
|
20
22
|
table = """| Name | Description | Parameter Class | Symbol | Domain | Initial Value |
|
21
23
|
| --- | --- | --- | --- | --- | --- |
|
@@ -43,7 +45,16 @@ def write_parameter_table_markdown(ms, initial_values=None, links=False):
|
|
43
45
|
table += "{}".format(tv)
|
44
46
|
table += "|"
|
45
47
|
if initial_values:
|
46
|
-
|
48
|
+
if compress_arrays:
|
49
|
+
iv = initial_values[var.name]
|
50
|
+
if type(iv) == list:
|
51
|
+
if len(iv) > 4:
|
52
|
+
iv = "[{}, {}, ... , {}, {}]".format(
|
53
|
+
iv[0], iv[1], iv[-2], iv[-1]
|
54
|
+
)
|
55
|
+
table += " {} |".format(iv)
|
56
|
+
else:
|
57
|
+
table += " {} |".format(initial_values[var.name])
|
47
58
|
|
48
59
|
table += "\n"
|
49
60
|
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/state.py
RENAMED
@@ -33,7 +33,9 @@ def write_state_variable_table(target_state, links=False):
|
|
33
33
|
return table
|
34
34
|
|
35
35
|
|
36
|
-
def write_state_variable_table_markdown(
|
36
|
+
def write_state_variable_table_markdown(
|
37
|
+
target_state, initial_values=None, links=False, compress_arrays=False
|
38
|
+
):
|
37
39
|
if initial_values:
|
38
40
|
table = """| Name | Description | Type | Symbol | Domain | Initial Value |
|
39
41
|
| --- | --- | --- | --- | --- | --- |
|
@@ -62,18 +64,32 @@ def write_state_variable_table_markdown(target_state, initial_values=None, links
|
|
62
64
|
table += "{}".format(tv)
|
63
65
|
table += "|"
|
64
66
|
if initial_values:
|
65
|
-
|
67
|
+
if compress_arrays:
|
68
|
+
iv = initial_values[var.name]
|
69
|
+
if type(iv) == list:
|
70
|
+
if len(iv) > 4:
|
71
|
+
iv = "[{}, {}, ... , {}, {}]".format(
|
72
|
+
iv[0], iv[1], iv[-2], iv[-1]
|
73
|
+
)
|
74
|
+
table += " {} |".format(iv)
|
75
|
+
else:
|
76
|
+
table += " {} |".format(initial_values[var.name])
|
66
77
|
|
67
78
|
table += "\n"
|
68
79
|
|
69
80
|
return table
|
70
81
|
|
71
82
|
|
72
|
-
def write_initial_state_variables_tables(
|
83
|
+
def write_initial_state_variables_tables(
|
84
|
+
ms, initial_values, links=False, compress_arrays=False
|
85
|
+
):
|
73
86
|
out = "### Global State"
|
74
87
|
out += "\n\n"
|
75
88
|
out += write_state_variable_table_markdown(
|
76
|
-
ms.state["Global State"],
|
89
|
+
ms.state["Global State"],
|
90
|
+
initial_values=initial_values,
|
91
|
+
links=links,
|
92
|
+
compress_arrays=compress_arrays,
|
77
93
|
)
|
78
94
|
out += "\n"
|
79
95
|
for x in ms.state:
|
@@ -82,7 +98,9 @@ def write_initial_state_variables_tables(ms, initial_values, links=False):
|
|
82
98
|
|
83
99
|
out += "### {}".format(x)
|
84
100
|
out += "\n\n"
|
85
|
-
out += write_state_variable_table_markdown(
|
101
|
+
out += write_state_variable_table_markdown(
|
102
|
+
ms.state[x], links=links, compress_arrays=compress_arrays
|
103
|
+
)
|
86
104
|
out += "\n"
|
87
105
|
|
88
106
|
return out
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/Block.py
RENAMED
File without changes
|
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/ControlAction.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/Entity.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/MathSpec.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/Mechanism.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/Metric.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/Parameter.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/Policy.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/Space.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/State.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Classes/__init__.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Convenience/__init__.py
RENAMED
File without changes
|
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Convenience/starter.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/__init__.py
RENAMED
File without changes
|
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/boundary_actions.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/control_actions.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/displays.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/entities.py
RENAMED
File without changes
|
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/implementations.py
RENAMED
File without changes
|
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/mechanism.py
RENAMED
File without changes
|
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/parameters.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Load/stateful_metrics.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/general.py
RENAMED
File without changes
|
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/markdown.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/mechanisms.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/node_map.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/policies.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/spaces.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/tables.py
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/Reports/wiring.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping/schema.schema.json
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping.egg-info/requires.txt
RENAMED
File without changes
|
{math_spec_mapping-0.3.11 → math_spec_mapping-0.3.12}/src/math_spec_mapping.egg-info/top_level.txt
RENAMED
File without changes
|