python-eigen-ingenuity 0.5.21b1__py3-none-any.whl → 0.5.21b2__py3-none-any.whl

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.
@@ -202,7 +202,7 @@ class RelationshipFileProcessor:
202
202
 
203
203
  explicit_properties, calculated_properties = pm.split_out_functional_properties(properties)
204
204
  new_labels = [from_labels, to_labels, relation, from_node.key, to_node.key, calculated_properties]
205
- query_data = [from_node.value, to_node.value, explicit_properties, calculated_properties, time_now]
205
+ query_data = [from_node.value.replace('\\\\n', '\n'), to_node.value.replace('\\\\n', '\n'), explicit_properties, calculated_properties, time_now]
206
206
 
207
207
  # So now we know all about this particular update. Let's put it in the query dictionary
208
208
  try:
@@ -62,13 +62,9 @@ def format_value(self, ref):
62
62
  given_data_format = self.format
63
63
 
64
64
  # Redo the formula if ref is not 'n.' (which we did in the init section) and it is a real formula
65
- if self.is_formula:
66
- if ref != 'n.':
67
- formula, is_formula = parse_value(self.value, ref)
68
- else:
69
- formula = self.formula
70
- else:
71
- formula = ''
65
+ if self.is_formula and ref != 'n.':
66
+ self.formula, self.is_formula = parse_value(self.value, ref)
67
+ formula = self.formula
72
68
 
73
69
  if self.is_formula and formula != '':
74
70
  match given_data_format:
@@ -94,12 +90,15 @@ def format_value(self, ref):
94
90
  case 'str':
95
91
  result = quote + (formula or value) + quote
96
92
  case 'int':
97
- # Remove any leading zeroes because the literal_eval function does not support them
98
- while value.startswith('0'):
99
- value = value[1:]
100
- result = int(ast.literal_eval(value))
101
- if result != ast.literal_eval(value):
102
- messages.warning_message('Invalid data: ', f'{value} is not a valid Integer, {result} used instead')
93
+ if value != '0':
94
+ # Remove any leading zeroes because the literal_eval function does not support them
95
+ while value.startswith('0'):
96
+ value = value[1:]
97
+ result = int(ast.literal_eval(value))
98
+ if result != ast.literal_eval(value):
99
+ messages.warning_message('Invalid data: ', f'{value} is not a valid Integer, {result} used instead')
100
+ else:
101
+ result = 0
103
102
  case 'float':
104
103
  result = float(ast.literal_eval(value))
105
104
  case 'bool' | 'boolean':
@@ -188,7 +187,7 @@ def format_value(self, ref):
188
187
  result = quote + value + quote
189
188
  self.format = 'str'
190
189
  except:
191
- messages.error_message('Invalid data: ', f"{value} is not valid for type '{given_data_format}' so value not set!")
190
+ messages.error_message('Invalid data: ', f"{value} is not valid for property {self.key} with type '{given_data_format}' so value not set!")
192
191
  result = '""'
193
192
 
194
193
  return result
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-eigen-ingenuity
3
- Version: 0.5.21b1
3
+ Version: 0.5.21b2
4
4
  Summary: A python library used to query data from the Eigen Ingenuity system
5
5
  Home-page: https://www.eigen.co/
6
6
  Author: Murray Callander
@@ -45,7 +45,7 @@ modelbuilder/src/csvwriter.py,sha256=2Xc6kdV6cYwCjrVF6WaZfS6tVp8-oc0ksIHSOx6iqj8
45
45
  modelbuilder/src/fileanalyser.py,sha256=5bLKB5yTseNK8B28L44ejwBZnesuIwacj77MLnw85-M,4293
46
46
  modelbuilder/src/filemanager.py,sha256=9SUctUBaDnXlV_2YxPm1ZtQX-HwEpZU7UBHyhJuLaPM,23045
47
47
  modelbuilder/src/messages.py,sha256=6JnW-ke6nHGUA4hTEBvo_kVlNJTXoV4LWw8mNwMpBCQ,1325
48
- modelbuilder/src/property.py,sha256=PN_w8UTObEjHS5GfiHtZRbV1ZM62EB-H44l8-1fKJNI,12727
48
+ modelbuilder/src/property.py,sha256=flK2WQxV3zWA8KN90ZJQg_tkbP_ltYGTho8jG6WXvLs,12815
49
49
  modelbuilder/src/versionmanager.py,sha256=B8mrYY5Der0sWi1GQjduyVGZ6BuAb6rTNVAZzQlP4k4,19148
50
50
  modelbuilder/src/connectors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
51
51
  modelbuilder/src/connectors/boltconnector.py,sha256=9mFpYUqYzf--o_8gLw00BjPOmOqo1X1KsdxjFkzYRaQ,4885
@@ -57,7 +57,7 @@ modelbuilder/src/processors/cypherfileprocessor.py,sha256=Y77GddRVhQKNhs6V4jfqwE
57
57
  modelbuilder/src/processors/labelmanager.py,sha256=F3mWxdlJZS9B6ksuXdlkQOU9Axqa_FRenHRxslteA3k,6672
58
58
  modelbuilder/src/processors/nodefileprocessor.py,sha256=qZsvIzNkjrn2Iujnklqv70-hGhKpa1y2KXA6boqii_s,13666
59
59
  modelbuilder/src/processors/propertymanager.py,sha256=8P1XLx6Ad8omPoDPLu6fv_TXqW-A4_umgeSYLsO0tpM,6996
60
- modelbuilder/src/processors/relationshipfileprocessor.py,sha256=niMxLir_YsH8Shq24CA8oJ8QKgvgm1xIX6Fvlk_lDdo,17019
60
+ modelbuilder/src/processors/relationshipfileprocessor.py,sha256=I45Ae9fgmcgW8KaFz3rldOjnkFSfew4BB4zeFi6XJbA,17065
61
61
  modelbuilder/src/processors/relationshipmanager.py,sha256=lDtE_5AdKzL3boq7VD8Gmpai8Uscq79vRxkzYQL8A9A,1105
62
62
  modelbuilder/src/queries/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
63
63
  modelbuilder/src/queries/cypherbuilder.py,sha256=VpUGuPo-Ba3skjCVBFjmxm4ORQBGgF5cDiQYnK67hLA,10418
@@ -86,8 +86,8 @@ regressiontests/eigeningenuity/historian-multi/test_getRawDatapoints.py,sha256=f
86
86
  regressiontests/eigeningenuity/historian-multi/test_listDataTags.py,sha256=TcceNSjCKoiK5SJcgTH2JXfKLYxIHdQdwZWlkpGnEVM,2006
87
87
  regressiontests/eigeningenuity/historian-multi/test_tagManagement.py,sha256=ylInBt453d1RaSih1eTTxGPZmb60UK4vMwI3UW-U1JY,4830
88
88
  regressiontests/eigeningenuity/historian-multi/test_writePoints.py,sha256=51tfUSLUqLKcCKJ1EyhjfzoC_4OP6n1oL3zgTSkXu4s,2696
89
- python_eigen_ingenuity-0.5.21b1.dist-info/METADATA,sha256=4_e_Zu3aJg7F0iMvQQoBUQRbQIj7PbSujB2z5nC6Ys0,38421
90
- python_eigen_ingenuity-0.5.21b1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
91
- python_eigen_ingenuity-0.5.21b1.dist-info/entry_points.txt,sha256=G3LjFQX5xKaN4mqtqCL8uaC-gRbP5T5x9r0gBTJTXXA,70
92
- python_eigen_ingenuity-0.5.21b1.dist-info/top_level.txt,sha256=oDWOSmlNPKNBlIEKP8_JaV01O60jTcUIt2tDkq3OD18,56
93
- python_eigen_ingenuity-0.5.21b1.dist-info/RECORD,,
89
+ python_eigen_ingenuity-0.5.21b2.dist-info/METADATA,sha256=VmF1IcytrrVQCCBHk0dCEfnSZybC_4nYH_rna6c0rXk,38421
90
+ python_eigen_ingenuity-0.5.21b2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
91
+ python_eigen_ingenuity-0.5.21b2.dist-info/entry_points.txt,sha256=G3LjFQX5xKaN4mqtqCL8uaC-gRbP5T5x9r0gBTJTXXA,70
92
+ python_eigen_ingenuity-0.5.21b2.dist-info/top_level.txt,sha256=oDWOSmlNPKNBlIEKP8_JaV01O60jTcUIt2tDkq3OD18,56
93
+ python_eigen_ingenuity-0.5.21b2.dist-info/RECORD,,