tricc-oo 1.4.21__tar.gz → 1.4.23__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.
Files changed (51) hide show
  1. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/PKG-INFO +1 -1
  2. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/pyproject.toml +1 -2
  3. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/converters/xml_to_tricc.py +5 -1
  4. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/strategies/output/xlsform_cht.py +1 -1
  5. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/strategies/output/xlsform_cht_hf.py +1 -1
  6. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/visitors/tricc.py +3 -2
  7. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo.egg-info/PKG-INFO +1 -1
  8. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/README.md +0 -0
  9. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/setup.cfg +0 -0
  10. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tests/build.py +0 -0
  11. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tests/test_cql.py +0 -0
  12. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tests/to_ocl.py +0 -0
  13. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/__init__.py +0 -0
  14. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/converters/__init__.py +0 -0
  15. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/converters/codesystem_to_ocl.py +0 -0
  16. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/converters/cql/cqlLexer.py +0 -0
  17. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/converters/cql/cqlListener.py +0 -0
  18. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/converters/cql/cqlParser.py +0 -0
  19. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/converters/cql/cqlVisitor.py +0 -0
  20. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/converters/cql_to_operation.py +0 -0
  21. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/converters/datadictionnary.py +0 -0
  22. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/converters/drawio_type_map.py +0 -0
  23. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/converters/tricc_to_xls_form.py +0 -0
  24. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/converters/utils.py +0 -0
  25. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/models/__init__.py +0 -0
  26. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/models/base.py +0 -0
  27. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/models/calculate.py +0 -0
  28. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/models/lang.py +0 -0
  29. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/models/ocl.py +0 -0
  30. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/models/ordered_set.py +0 -0
  31. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/models/tricc.py +0 -0
  32. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/parsers/__init__.py +0 -0
  33. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/parsers/xml.py +0 -0
  34. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/serializers/__init__.py +0 -0
  35. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/serializers/planuml.py +0 -0
  36. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/serializers/xls_form.py +0 -0
  37. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/strategies/__init__.py +0 -0
  38. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/strategies/input/__init__.py +0 -0
  39. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/strategies/input/base_input_strategy.py +0 -0
  40. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/strategies/input/drawio.py +0 -0
  41. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/strategies/output/base_output_strategy.py +0 -0
  42. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/strategies/output/spice.py +0 -0
  43. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/strategies/output/xls_form.py +0 -0
  44. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/strategies/output/xlsform_cdss.py +0 -0
  45. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/visitors/__init__.py +0 -0
  46. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/visitors/utils.py +0 -0
  47. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo/visitors/xform_pd.py +0 -0
  48. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo.egg-info/SOURCES.txt +0 -0
  49. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo.egg-info/dependency_links.txt +0 -0
  50. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo.egg-info/requires.txt +0 -0
  51. {tricc_oo-1.4.21 → tricc_oo-1.4.23}/tricc_oo.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tricc-oo
3
- Version: 1.4.21
3
+ Version: 1.4.23
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
@@ -4,10 +4,9 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tricc-oo"
7
- version = "1.4.21"
7
+ version = "1.4.23"
8
8
  description = "Python library that converts CDSS L2 in L3"
9
9
  readme = "README.md"
10
-
11
10
  requires-python = ">=3.8"
12
11
  classifiers = [
13
12
  "Programming Language :: Python :: 3",
@@ -242,6 +242,10 @@ def process_edges(diagram, media_path, activity, nodes):
242
242
  "not management found",
243
243
  )
244
244
  )
245
+ elif edge.source in nodes and isinstance(nodes[edge.source], TriccNodeRhombus):
246
+ logger.critical(
247
+ "rhombus {} node with labelless edges".format(nodes[edge.source].get_name())
248
+ )
245
249
  if not end_found:
246
250
  fake_end = TriccNodeActivityEnd(id=generate_id(f"e{activity.name}"), activity=activity, group=activity)
247
251
  last_nodes = [
@@ -976,7 +980,7 @@ def process_exclusive_edge(edge, nodes):
976
980
 
977
981
 
978
982
  def process_yesno_edge(edge, nodes):
979
- if edge.value is None:
983
+ if not edge.value:
980
984
  logger.critical(
981
985
  "yesNo {} node with labelless edges".format(nodes[edge.source].get_name())
982
986
  )
@@ -7,7 +7,7 @@ import pandas as pd
7
7
 
8
8
  from tricc_oo.models.lang import SingletonLangClass
9
9
  from tricc_oo.models.calculate import TriccNodeEnd
10
- from tricc_oo.serializers.xls_form import SURVEY_MAP, get_input_line
10
+ from tricc_oo.serializers.xls_form import SURVEY_MAP, get_input_line, get_input_calc_line
11
11
  from tricc_oo.strategies.output.xlsform_cdss import XLSFormCDSSStrategy
12
12
  from tricc_oo.converters.tricc_to_xls_form import get_export_name
13
13
  from tricc_oo.converters.utils import clean_name, remove_html
@@ -16,7 +16,7 @@ logger = logging.getLogger("default")
16
16
  class XLSFormCHTHFStrategy(XLSFormCHTStrategy):
17
17
 
18
18
 
19
- def get_contact_inputs(df_inputs):
19
+ def get_contact_inputs(self, df_inputs):
20
20
  return None
21
21
 
22
22
  def get_cht_summary(self):
@@ -491,8 +491,9 @@ def generate_calculates(node,calculates, used_calculates,processed_nodes):
491
491
  last=True
492
492
  )
493
493
  node.activity.nodes[calc_node.id]=calc_node
494
- node.activity.calculates.append(calc_node)
495
- set_last_version_false(calc_node, processed_nodes)
494
+ last_version = set_last_version_false(calc_node, processed_nodes)
495
+ if last_version:
496
+ get_version_inheritance(node, last_version, processed_nodes)
496
497
  processed_nodes.add(calc_node)
497
498
  logger.debug("generate_save_calculate:{}:{} as {}".format(calc_node.tricc_type, node.name if hasattr(node,'name') else node.id, calculate_name))
498
499
  if isinstance(node, TriccNodeSelectYesNo):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tricc-oo
3
- Version: 1.4.21
3
+ Version: 1.4.23
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