tricc-oo 1.5.2__tar.gz → 1.5.3__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.2/tricc_oo.egg-info → tricc_oo-1.5.3}/PKG-INFO +1 -1
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/pyproject.toml +1 -1
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/visitors/tricc.py +37 -16
- {tricc_oo-1.5.2 → tricc_oo-1.5.3/tricc_oo.egg-info}/PKG-INFO +2 -2
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/README.md +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/setup.cfg +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tests/build.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tests/test_cql.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tests/to_ocl.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/__init__.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/converters/__init__.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/converters/codesystem_to_ocl.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/converters/cql/cqlLexer.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/converters/cql/cqlListener.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/converters/cql/cqlParser.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/converters/cql/cqlVisitor.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/converters/cql_to_operation.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/converters/datadictionnary.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/converters/drawio_type_map.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/converters/tricc_to_xls_form.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/converters/utils.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/converters/xml_to_tricc.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/models/__init__.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/models/base.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/models/calculate.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/models/lang.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/models/ocl.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/models/ordered_set.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/models/tricc.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/parsers/__init__.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/parsers/xml.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/serializers/__init__.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/serializers/planuml.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/serializers/xls_form.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/strategies/__init__.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/strategies/input/__init__.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/strategies/input/base_input_strategy.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/strategies/input/drawio.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/strategies/output/base_output_strategy.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/strategies/output/spice.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/strategies/output/xls_form.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/strategies/output/xlsform_cdss.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/strategies/output/xlsform_cht.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/strategies/output/xlsform_cht_hf.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/visitors/__init__.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/visitors/utils.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo/visitors/xform_pd.py +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo.egg-info/SOURCES.txt +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo.egg-info/dependency_links.txt +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo.egg-info/requires.txt +0 -0
- {tricc_oo-1.5.2 → tricc_oo-1.5.3}/tricc_oo.egg-info/top_level.txt +0 -0
|
@@ -1818,17 +1818,42 @@ def get_prev_node_expression( node, processed_nodes, is_calculate=False, exclude
|
|
|
1818
1818
|
expression_inputs = node.expression_inputs
|
|
1819
1819
|
expression_inputs = clean_or_list(expression_inputs)
|
|
1820
1820
|
else:
|
|
1821
|
-
expression_inputs = []
|
|
1821
|
+
expression_inputs = []
|
|
1822
|
+
prev_activities = {}
|
|
1822
1823
|
for prev_node in node.prev_nodes:
|
|
1823
|
-
if
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1824
|
+
if prev_node.activity.id not in prev_activities:
|
|
1825
|
+
prev_activities[prev_node.activity.id]=[]
|
|
1826
|
+
prev_activities[prev_node.activity.id].append(prev_node)
|
|
1827
|
+
|
|
1828
|
+
for act_id in prev_activities:
|
|
1829
|
+
for prev_node in prev_activities[act_id]:
|
|
1830
|
+
act_expression_inputs = []
|
|
1831
|
+
if excluded_name is None or prev_node != excluded_name or (
|
|
1832
|
+
isinstance(excluded_name, str) and hasattr(prev_node, 'name') and prev_node.name != excluded_name): # or isinstance(prev_node, TriccNodeActivityEnd):
|
|
1833
|
+
# the rhombus should calculate only reference
|
|
1834
|
+
sub = get_node_expression(
|
|
1835
|
+
prev_node,
|
|
1836
|
+
processed_nodes=processed_nodes,
|
|
1837
|
+
is_calculate=is_calculate,
|
|
1838
|
+
is_prev=True,
|
|
1839
|
+
process=process)
|
|
1840
|
+
if not isinstance(node, TriccNodeActivity):
|
|
1841
|
+
add_sub_expression(expression_inputs, sub )
|
|
1842
|
+
else:
|
|
1843
|
+
add_sub_expression(act_expression_inputs, sub )
|
|
1844
|
+
|
|
1845
|
+
if act_expression_inputs:
|
|
1846
|
+
act_sub = or_join(act_expression_inputs)
|
|
1847
|
+
if act_sub == TriccStatic(True):
|
|
1848
|
+
act_sub = get_node_expression(
|
|
1849
|
+
prev_node.activity,
|
|
1850
|
+
processed_nodes=processed_nodes,
|
|
1851
|
+
is_calculate=True,
|
|
1852
|
+
is_prev=True,
|
|
1853
|
+
negate=False,
|
|
1854
|
+
process=process
|
|
1855
|
+
)
|
|
1856
|
+
add_sub_expression(expression_inputs, act_sub )
|
|
1832
1857
|
# avoid void is there is not conditions to avoid looping too much itme
|
|
1833
1858
|
# expression_inputs = clean_or_list(
|
|
1834
1859
|
# [
|
|
@@ -1837,12 +1862,8 @@ def get_prev_node_expression( node, processed_nodes, is_calculate=False, exclude
|
|
|
1837
1862
|
# else e
|
|
1838
1863
|
# for e in expression_inputs])
|
|
1839
1864
|
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
expression = expression_inputs[0]
|
|
1843
|
-
|
|
1844
|
-
elif expression_inputs:
|
|
1845
|
-
expression = or_join(
|
|
1865
|
+
if expression_inputs:
|
|
1866
|
+
expression = or_join(
|
|
1846
1867
|
expression_inputs
|
|
1847
1868
|
)
|
|
1848
1869
|
# if isinstance(node, TriccNodeExclusive):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: tricc-oo
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.3
|
|
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
|
|
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
|