tricc-oo 1.5.10__tar.gz → 1.5.11__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.
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/PKG-INFO +1 -1
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/pyproject.toml +1 -1
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/visitors/tricc.py +14 -6
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo.egg-info/PKG-INFO +1 -1
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/README.md +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/setup.cfg +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tests/build.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tests/test_cql.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tests/to_ocl.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/__init__.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/converters/__init__.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/converters/codesystem_to_ocl.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/converters/cql/cqlLexer.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/converters/cql/cqlListener.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/converters/cql/cqlParser.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/converters/cql/cqlVisitor.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/converters/cql_to_operation.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/converters/datadictionnary.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/converters/drawio_type_map.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/converters/tricc_to_xls_form.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/converters/utils.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/converters/xml_to_tricc.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/models/__init__.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/models/base.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/models/calculate.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/models/lang.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/models/ocl.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/models/ordered_set.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/models/tricc.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/parsers/__init__.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/parsers/xml.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/serializers/__init__.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/serializers/planuml.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/serializers/xls_form.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/strategies/__init__.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/strategies/input/__init__.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/strategies/input/base_input_strategy.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/strategies/input/drawio.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/strategies/output/base_output_strategy.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/strategies/output/spice.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/strategies/output/xls_form.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/strategies/output/xlsform_cdss.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/strategies/output/xlsform_cht.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/strategies/output/xlsform_cht_hf.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/visitors/__init__.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/visitors/utils.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo/visitors/xform_pd.py +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo.egg-info/SOURCES.txt +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo.egg-info/dependency_links.txt +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo.egg-info/requires.txt +0 -0
- {tricc_oo-1.5.10 → tricc_oo-1.5.11}/tricc_oo.egg-info/top_level.txt +0 -0
|
@@ -94,6 +94,8 @@ def get_node_expressions(node, processed_nodes, process=None):
|
|
|
94
94
|
return expression
|
|
95
95
|
|
|
96
96
|
def set_last_version_false(node, processed_nodes):
|
|
97
|
+
if isinstance(node, (TriccNodeDiagnosis, TriccNodeSelectOption)):
|
|
98
|
+
return
|
|
97
99
|
node_name = node.name if not isinstance(node, TriccNodeEnd) else node.get_reference()
|
|
98
100
|
#last_version = get_last_version(node_name, processed_nodes) if issubclass(node.__class__, (TriccNodeDisplayModel, TriccNodeDisplayCalculateBase, TriccNodeEnd)) and not isinstance(node, TriccNodeSelectOption) else None
|
|
99
101
|
last_version = processed_nodes.find_prev(node, version_filter(node_name))
|
|
@@ -191,9 +193,12 @@ def process_calculate(node,processed_nodes, stashed_nodes, calculates, used_calc
|
|
|
191
193
|
):
|
|
192
194
|
if kwargs.get('warn', True):
|
|
193
195
|
logger.debug('Processing relevance for node {0}'.format(node.get_name()))
|
|
196
|
+
# tricc diagnostic have the same name as proposed diag but will be serialised with different names
|
|
197
|
+
|
|
194
198
|
last_version = set_last_version_false(node, processed_nodes)
|
|
195
199
|
if last_version:
|
|
196
200
|
last_version = get_version_inheritance(node, last_version, processed_nodes)
|
|
201
|
+
|
|
197
202
|
generate_calculates(node,calculates, used_calculates,processed_nodes=processed_nodes, process=process)
|
|
198
203
|
|
|
199
204
|
|
|
@@ -1270,7 +1275,7 @@ def set_prev_next_node(source_node, target_node, replaced_node=None, edge_only =
|
|
|
1270
1275
|
set_next_node(source_node, target_node, replaced_node, edge_only)
|
|
1271
1276
|
|
|
1272
1277
|
if activity and not any([(e.source == source_id) and ( e.target == target_id) for e in activity.edges]):
|
|
1273
|
-
label = "continue" if issubclass(source_node.__class__,
|
|
1278
|
+
label = "continue" if issubclass(source_node.__class__, TriccNodeSelect) else None
|
|
1274
1279
|
activity.edges.append(TriccEdge(id = generate_id(), source = source_id, target = target_id, value = label))
|
|
1275
1280
|
|
|
1276
1281
|
def remove_prev_next(prev_node, next_node, activity=None):
|
|
@@ -1431,11 +1436,11 @@ def reorder_node_list(node_list, group, processed_nodes):
|
|
|
1431
1436
|
# Check for parent group
|
|
1432
1437
|
elif hasattr(group, "group") and group.group and node_group and node_group.id == group.group.id:
|
|
1433
1438
|
priority += PARENT_GROUP_PRIORITY
|
|
1434
|
-
# Check for active activities (not
|
|
1435
|
-
elif activity and
|
|
1439
|
+
# Check for active activities (not main)
|
|
1440
|
+
elif activity and isinstance(activity.root, TriccNodeActivityStart) and activity in active_activities:
|
|
1436
1441
|
priority += ACTIVE_ACTIVITY_PRIORITY
|
|
1437
|
-
# Check for non
|
|
1438
|
-
elif activity and
|
|
1442
|
+
# Check for non main activities
|
|
1443
|
+
elif activity and isinstance(activity.root, TriccNodeActivityStart):
|
|
1439
1444
|
priority += NON_START_ACTIVITY_PRIORITY
|
|
1440
1445
|
# Check for active activities (lower priority)
|
|
1441
1446
|
elif activity and activity in active_activities:
|
|
@@ -1799,12 +1804,15 @@ def create_determine_diagnosis_activity(diags):
|
|
|
1799
1804
|
activity.calculates.append(r)
|
|
1800
1805
|
activity.calculates.append(c)
|
|
1801
1806
|
set_prev_next_node(r, d, edge_only=False)
|
|
1802
|
-
set_prev_next_node(d,
|
|
1807
|
+
set_prev_next_node(d, end, edge_only=False)
|
|
1808
|
+
wait2 = get_activity_wait([activity.root], diags_conf, [f], edge_only=False)
|
|
1803
1809
|
activity.nodes[d.options[0].id] = d.options[0]
|
|
1804
1810
|
activity.nodes[d.options[1].id] = d.options[1]
|
|
1805
1811
|
activity.nodes[d.id]=d
|
|
1806
1812
|
activity.nodes[r.id]=r
|
|
1807
1813
|
activity.nodes[c.id]=c
|
|
1814
|
+
activity.nodes[f.id]=f
|
|
1815
|
+
activity.nodes[wait2.id]=wait2
|
|
1808
1816
|
# fallback
|
|
1809
1817
|
|
|
1810
1818
|
options = [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|