python-eigen-ingenuity 0.5.6b2__py3-none-any.whl → 0.5.6b4__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.
@@ -109,7 +109,7 @@ class RelationshipFileProcessor:
109
109
  query_text = query_text.on_create().set_literal(create_time).set_literal(update_time)
110
110
 
111
111
  if len(properties) > 0:
112
- query_text = query_text.set(properties=properties)
112
+ query_text = query_text.set(properties=properties, property_ref=relation_ref_dot)
113
113
  query_text = query_text.toStr()
114
114
  query = Neo4jQuery('relationship', query_text, time_now)
115
115
 
@@ -177,8 +177,9 @@ class RelationshipFileProcessor:
177
177
  for relation in relationship.split(':'):
178
178
  if relation:
179
179
 
180
- new_labels = [from_labels, to_labels, relation, list(from_node)[0], list(to_node)[0]]
181
- query_data = [list(from_node.values())[0], list(to_node.values())[0], properties, time_now]
180
+ explicit_properties, calculated_properties = pm.split_out_functional_properties(properties)
181
+ new_labels = [from_labels, to_labels, relation, list(from_node)[0], list(to_node)[0], calculated_properties]
182
+ query_data = [list(from_node.values())[0], list(to_node.values())[0], explicit_properties, calculated_properties, time_now]
182
183
 
183
184
  # So now we know all about this particular update. Let's put it in the query dictionary
184
185
  try:
@@ -220,10 +221,11 @@ class RelationshipFileProcessor:
220
221
  # Combine all the update data...
221
222
  update = updates[(batch_num - 1) * self.batch_rate + this_size]
222
223
  update_properties = update[2] or {} # In case update_properties[2] is {}
224
+ func_properties = update[3] or {} # In case update_properties[3] is {}
223
225
  update_properties[from_ref + from_type] = update[0]
224
226
  update_properties[to_ref + to_type] = update[1]
225
227
  if self.add_system_properties:
226
- update_properties[self.update_time_property] = update[3]
228
+ update_properties[self.update_time_property] = update[4]
227
229
  payload.append(update_properties)
228
230
  this_size += 1
229
231
  query_count += 1
@@ -253,6 +255,8 @@ class RelationshipFileProcessor:
253
255
  query_text = query_text.on_create().set_literal(create_time)
254
256
 
255
257
  query_text = query_text.set_literal(relation_ref + ' += ' + payload_ref)
258
+ if func_properties:
259
+ query_text = query_text.set_functional(func_properties, relation_ref_dot)
256
260
 
257
261
  if self.add_system_properties:
258
262
  query_text = query_text.set_literal(update_time)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-eigen-ingenuity
3
- Version: 0.5.6b2
3
+ Version: 0.5.6b4
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
@@ -75,6 +75,11 @@ This library supports python 3.10 onwards. It may work for earlier versions of p
75
75
 
76
76
  The python-eigen-ingenuity library contains 2 modules:
77
77
 
78
+ # Note <!-- omit in toc -->
79
+ This version of the library includes a CLI tool for building assetmodels on Eigen Systems (See [ModelBuilder Section](#asset-model-builder)). On some secured machines this cli tool may cause the library to fail to install, or raise an error.
80
+
81
+ if this occurs, install the version without the CLI tool [here](https://pypi.org/project/python-eigen-ingenuity-nocli/)
82
+
78
83
  ### 1. Eigen Ingenuity <!-- omit in toc -->
79
84
  This module is used to query data from many of the databases in the Ingenuity Platform, including:
80
85
  - timeseries historians (influx, PI, IP21, cognite)
@@ -32,13 +32,14 @@ modelbuilder/src/processors/cypherfileprocessor.py,sha256=Y77GddRVhQKNhs6V4jfqwE
32
32
  modelbuilder/src/processors/labelmanager.py,sha256=03fD-JXjdeEyHXUeihst5rVWgmd-3-Y8fSMM42OfsT8,6237
33
33
  modelbuilder/src/processors/nodefileprocessor.py,sha256=mJhckThQhv7hMGI_JExLmb_8ShdJZTy7UeHhr_3ztQQ,13916
34
34
  modelbuilder/src/processors/propertymanager.py,sha256=WvGV9S6YC6-muyhxBjPDiPjnsWv-KSnFPknzPobWUqM,5086
35
- modelbuilder/src/processors/relationshipfileprocessor.py,sha256=cq-oDBWVx_m-5zoVd35uNvbhqax4F5fAS7yUfsFitRU,14943
35
+ modelbuilder/src/processors/relationshipfileprocessor.py,sha256=lHUbpnvl66SKUFEfr2dpwyQgbc4FqY3loRkATtOPZTM,15375
36
36
  modelbuilder/src/processors/relationshipmanager.py,sha256=lDtE_5AdKzL3boq7VD8Gmpai8Uscq79vRxkzYQL8A9A,1105
37
37
  modelbuilder/src/queries/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  modelbuilder/src/queries/cypherbuilder.py,sha256=jnQos26sKcQMkdR4gLYZ2YUglIAz65MW3gwr02REVqc,10638
39
39
  modelbuilder/src/queries/query.py,sha256=gN69uwsf-0F6_dGx9cxLGuM17960_FV58pyimJ9usxY,2472
40
40
  modelbuilder/src/queries/typedefs.py,sha256=xbMPLwWHY4PO2qbxiXmmIWm2bFJOkWtJKtwlca5hzTg,7998
41
- python_eigen_ingenuity-0.5.6b2.dist-info/METADATA,sha256=FMa2kbrdw-eUlGI5vvWiWPMNLm8SHPZAIyI_UUQM0zg,37798
42
- python_eigen_ingenuity-0.5.6b2.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
43
- python_eigen_ingenuity-0.5.6b2.dist-info/top_level.txt,sha256=lFiZ43CY_1bmdtRidIXbA6rrY2d92Rs-9tH8pcgI-XU,28
44
- python_eigen_ingenuity-0.5.6b2.dist-info/RECORD,,
41
+ python_eigen_ingenuity-0.5.6b4.dist-info/METADATA,sha256=NY6wGi-51lFltn-fPHWtAxbPZq813SA_EEyN9OULVqA,38190
42
+ python_eigen_ingenuity-0.5.6b4.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
43
+ python_eigen_ingenuity-0.5.6b4.dist-info/entry_points.txt,sha256=G3LjFQX5xKaN4mqtqCL8uaC-gRbP5T5x9r0gBTJTXXA,70
44
+ python_eigen_ingenuity-0.5.6b4.dist-info/top_level.txt,sha256=lFiZ43CY_1bmdtRidIXbA6rrY2d92Rs-9tH8pcgI-XU,28
45
+ python_eigen_ingenuity-0.5.6b4.dist-info/RECORD,,
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ assetmodelbuilder = modelbuilder:__cli_entrypoint__