tricc-oo 1.5.0__tar.gz → 1.5.1__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.0/tricc_oo.egg-info → tricc_oo-1.5.1}/PKG-INFO +2 -2
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/pyproject.toml +1 -1
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/converters/xml_to_tricc.py +1 -1
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/visitors/tricc.py +4 -4
- {tricc_oo-1.5.0 → tricc_oo-1.5.1/tricc_oo.egg-info}/PKG-INFO +1 -1
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/README.md +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/setup.cfg +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tests/build.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tests/test_cql.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tests/to_ocl.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/__init__.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/converters/__init__.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/converters/codesystem_to_ocl.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/converters/cql/cqlLexer.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/converters/cql/cqlListener.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/converters/cql/cqlParser.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/converters/cql/cqlVisitor.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/converters/cql_to_operation.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/converters/datadictionnary.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/converters/drawio_type_map.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/converters/tricc_to_xls_form.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/converters/utils.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/models/__init__.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/models/base.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/models/calculate.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/models/lang.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/models/ocl.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/models/ordered_set.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/models/tricc.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/parsers/__init__.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/parsers/xml.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/serializers/__init__.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/serializers/planuml.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/serializers/xls_form.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/strategies/__init__.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/strategies/input/__init__.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/strategies/input/base_input_strategy.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/strategies/input/drawio.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/strategies/output/base_output_strategy.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/strategies/output/spice.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/strategies/output/xls_form.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/strategies/output/xlsform_cdss.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/strategies/output/xlsform_cht.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/strategies/output/xlsform_cht_hf.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/visitors/__init__.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/visitors/utils.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo/visitors/xform_pd.py +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo.egg-info/SOURCES.txt +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo.egg-info/dependency_links.txt +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo.egg-info/requires.txt +0 -0
- {tricc_oo-1.5.0 → tricc_oo-1.5.1}/tricc_oo.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: tricc-oo
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.1
|
|
4
4
|
Summary: Python library that converts CDSS L2 in L3
|
|
5
5
|
Project-URL: Homepage, https://github.com/SwissTPH/tricc
|
|
6
6
|
Project-URL: Issues, https://github.com/SwissTPH/tricc/issues
|
|
@@ -67,7 +67,7 @@ def get_last_version(name, processed_nodes, _list=None):
|
|
|
67
67
|
# node is the node to calculate
|
|
68
68
|
# processed_nodes are the list of processed nodes
|
|
69
69
|
def get_node_expressions(node, processed_nodes, process=None):
|
|
70
|
-
is_calculate = issubclass(node.__class__, TriccNodeCalculateBase)
|
|
70
|
+
is_calculate = issubclass(node.__class__, TriccNodeCalculateBase) and not issubclass(node.__class__, (TriccNodeDisplayBridge,TriccNodeBridge))
|
|
71
71
|
expression = None
|
|
72
72
|
# in case of recursive call processed_nodes will be None
|
|
73
73
|
if processed_nodes is None or is_ready_to_process(node, processed_nodes=processed_nodes):
|
|
@@ -369,7 +369,7 @@ def get_bridge_path(prev_nodes, node=None,edge_only=False):
|
|
|
369
369
|
'path_len': node.path_len + 1 * (node == p_p_node)
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
if sum([0 if issubclass(n.__class__, (TriccNodeDisplayCalculateBase, TriccNodeRhombus)) else 1 for n in prev_nodes])>0 :
|
|
372
|
+
if len(prev_nodes)>1 and sum([0 if issubclass(n.__class__, (TriccNodeDisplayCalculateBase, TriccNodeRhombus)) else 1 for n in prev_nodes])>0 :
|
|
373
373
|
calc= TriccNodeDisplayBridge( **data)
|
|
374
374
|
else:
|
|
375
375
|
calc = TriccNodeBridge( **data)
|
|
@@ -1530,7 +1530,7 @@ def get_node_expression( in_node, processed_nodes, is_calculate=False, is_prev=F
|
|
|
1530
1530
|
prev_exp = get_node_expression(
|
|
1531
1531
|
node.path,
|
|
1532
1532
|
processed_nodes=processed_nodes,
|
|
1533
|
-
is_calculate=
|
|
1533
|
+
is_calculate=False,
|
|
1534
1534
|
is_prev=True,
|
|
1535
1535
|
process=process)
|
|
1536
1536
|
if prev_exp and expression:
|
|
@@ -2068,7 +2068,7 @@ def get_rhombus_terms( node, processed_nodes, is_calculate=False, negate=False,
|
|
|
2068
2068
|
exit(1)
|
|
2069
2069
|
|
|
2070
2070
|
if expression is not None:
|
|
2071
|
-
if isinstance(expression, TriccOperation):
|
|
2071
|
+
if isinstance(expression, (TriccOperation, TriccStatic)):
|
|
2072
2072
|
return expression
|
|
2073
2073
|
elif issubclass(expression.__class__ , TriccNodeCalculateBase):
|
|
2074
2074
|
return TriccOperation(
|
|
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
|