cognite-neat 0.109.3__py3-none-any.whl → 0.109.4__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.

Potentially problematic release.


This version of cognite-neat might be problematic. Click here for more details.

@@ -575,9 +575,23 @@ class ToEnterpriseModel(ToExtensionModel):
575
575
 
576
576
  # ... however, we do not want to keep the reference containers and properties
577
577
  # these we are getting for free through the implements.
578
+ enterprise_containers.sort(key=lambda container: (container.container.space, container.container.external_id))
578
579
  enterprise_model.containers = enterprise_containers
580
+ enterprise_properties.sort(
581
+ key=lambda prop: (prop.view.space, prop.view.external_id, prop.view.version, prop.view_property)
582
+ )
579
583
  enterprise_model.properties = enterprise_properties
580
584
 
585
+ # Sorting all your views first.
586
+ enterprise_model.views.sort(
587
+ key=lambda view: (
588
+ # Sorting your views first
589
+ int(view.view.space != self.new_model_id.space),
590
+ view.view.space,
591
+ view.view.external_id,
592
+ view.view.version,
593
+ )
594
+ )
581
595
  return enterprise_model
582
596
 
583
597
  @staticmethod
cognite/neat/_version.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = "0.109.3"
1
+ __version__ = "0.109.4"
2
2
  __engine__ = "^2.0.3"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cognite-neat
3
- Version: 0.109.3
3
+ Version: 0.109.4
4
4
  Summary: Knowledge graph transformation
5
5
  License: Apache-2.0
6
6
  Author: Nikola Vasiljevic
@@ -132,7 +132,7 @@ cognite/neat/_rules/models/mapping/_classic2core.py,sha256=AhLWoXk4PlBVA6SgBtY9d
132
132
  cognite/neat/_rules/models/mapping/_classic2core.yaml,sha256=jodkmcTborWJmG3At16OChtnol696X6D4lgAa7aaQ78,20491
133
133
  cognite/neat/_rules/transformers/__init__.py,sha256=S6iUB7wpAh-7uF5k_EgXT4cGfi8ok5lczGemVxgKckQ,1413
134
134
  cognite/neat/_rules/transformers/_base.py,sha256=9LnjKbYIf9238PQXedkTZsMXAyEND6glUD187iEaHfc,2783
135
- cognite/neat/_rules/transformers/_converters.py,sha256=daDpW4zgHRjm845R2ajfC9XoAPFV2jOq8Wa3z6C4y0M,77621
135
+ cognite/neat/_rules/transformers/_converters.py,sha256=8rQ_cPghbvuBGIHfXtQE_COpFwPy-60dgyLnSTUUINs,78242
136
136
  cognite/neat/_rules/transformers/_mapping.py,sha256=lf-RKN__5Bg3-tZjEOCa1Sf_JtM_ScQ_TYcnciEnaYQ,18189
137
137
  cognite/neat/_rules/transformers/_verification.py,sha256=jKTppklUCVwVlRfYyMfnUtV8r2ACTY-AtsoMF6L-KXo,4593
138
138
  cognite/neat/_session/__init__.py,sha256=fxQ5URVlUnmEGYyB8Baw7IDq-uYacqkigbc4b-Pr9Fw,58
@@ -175,10 +175,10 @@ cognite/neat/_utils/text.py,sha256=9sBlE05S_9irzRxRvafBlWWy-kPgvUPV2Xo-_IgcwHM,4
175
175
  cognite/neat/_utils/time_.py,sha256=O30LUiDH9TdOYz8_a9pFqTtJdg8vEjC3qHCk8xZblG8,345
176
176
  cognite/neat/_utils/upload.py,sha256=iWKmsQgw4EHLv-11NjYu7zAj5LtqTAfNa87a1kWeuaU,5727
177
177
  cognite/neat/_utils/xml_.py,sha256=FQkq84u35MUsnKcL6nTMJ9ajtG9D5i1u4VBnhGqP2DQ,1710
178
- cognite/neat/_version.py,sha256=vGciJru9VsVwxQTbuUK6fhVtm7NFfhyVTVYsHrCWLes,46
178
+ cognite/neat/_version.py,sha256=QVwn7nO52-wrWZD6BCidVN8e8DGr4r7lQqTaIGS5Sds,46
179
179
  cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
180
- cognite_neat-0.109.3.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
181
- cognite_neat-0.109.3.dist-info/METADATA,sha256=gB5oGvRGY4ON3W-z80mUOHMVSOlilQy3zUMLhqGJrhg,5361
182
- cognite_neat-0.109.3.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
183
- cognite_neat-0.109.3.dist-info/entry_points.txt,sha256=SsQlnl8SNMSSjE3acBI835JYFtsIinLSbVmHmMEXv6E,51
184
- cognite_neat-0.109.3.dist-info/RECORD,,
180
+ cognite_neat-0.109.4.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
181
+ cognite_neat-0.109.4.dist-info/METADATA,sha256=d9-11fBzN6fR8usoDMQUtGkUpEKjFxdjS3mTbN7TVsU,5361
182
+ cognite_neat-0.109.4.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
183
+ cognite_neat-0.109.4.dist-info/entry_points.txt,sha256=SsQlnl8SNMSSjE3acBI835JYFtsIinLSbVmHmMEXv6E,51
184
+ cognite_neat-0.109.4.dist-info/RECORD,,