cognite-neat 0.96.3__py3-none-any.whl → 0.96.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.
- cognite/neat/_rules/models/dms/_rules.py +3 -1
- cognite/neat/_rules/models/entities/_single_value.py +3 -3
- cognite/neat/_version.py +1 -1
- {cognite_neat-0.96.3.dist-info → cognite_neat-0.96.4.dist-info}/METADATA +1 -1
- {cognite_neat-0.96.3.dist-info → cognite_neat-0.96.4.dist-info}/RECORD +8 -8
- {cognite_neat-0.96.3.dist-info → cognite_neat-0.96.4.dist-info}/LICENSE +0 -0
- {cognite_neat-0.96.3.dist-info → cognite_neat-0.96.4.dist-info}/WHEEL +0 -0
- {cognite_neat-0.96.3.dist-info → cognite_neat-0.96.4.dist-info}/entry_points.txt +0 -0
|
@@ -231,7 +231,9 @@ class DMSProperty(SheetRow):
|
|
|
231
231
|
@field_serializer("connection", when_used="unless-none")
|
|
232
232
|
def remove_defaults(self, value: Any, info: SerializationInfo) -> str:
|
|
233
233
|
if isinstance(value, Entity) and (metadata := _metadata(info.context)):
|
|
234
|
-
default_type = f"{
|
|
234
|
+
default_type = f"{self.view.external_id}.{self.view_property}"
|
|
235
|
+
if isinstance(value, EdgeEntity) and value.edge_type and value.edge_type.space != metadata.space:
|
|
236
|
+
default_type = f"{metadata.space}{default_type}"
|
|
235
237
|
return value.dump(space=metadata.space, version=metadata.version, type=default_type)
|
|
236
238
|
return str(value)
|
|
237
239
|
|
|
@@ -187,10 +187,10 @@ class Entity(BaseModel, extra="ignore"):
|
|
|
187
187
|
}
|
|
188
188
|
if isinstance(defaults, dict):
|
|
189
189
|
for key, value in defaults.items():
|
|
190
|
-
if key in model_dump and
|
|
190
|
+
if key in model_dump and model_dump[key] == value:
|
|
191
191
|
del model_dump[key]
|
|
192
|
-
|
|
193
|
-
args = ",".join(f"{k}={v}" for k, v in model_dump.items())
|
|
192
|
+
# Sorting to ensure deterministic order
|
|
193
|
+
args = ",".join(f"{k}={v}" for k, v in sorted(model_dump.items(), key=lambda x: x[0]))
|
|
194
194
|
if self.prefix == Undefined or (isinstance(defaults, dict) and self.prefix == defaults.get("prefix")):
|
|
195
195
|
base_id = str(self.suffix)
|
|
196
196
|
else:
|
cognite/neat/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.96.
|
|
1
|
+
__version__ = "0.96.4"
|
|
@@ -186,7 +186,7 @@ cognite/neat/_rules/models/asset/_validation.py,sha256=6u86qLlr1ehG1I5kIZhfCYTqU
|
|
|
186
186
|
cognite/neat/_rules/models/data_types.py,sha256=ACQjS9vs7EjaNSO8R1kHiiNYbdeVQLCvxJYfZhWF8mM,9620
|
|
187
187
|
cognite/neat/_rules/models/dms/__init__.py,sha256=CUqUlVjz4yZX_-61F-2ofSoV7N9MlSYx2N7vM-omp7E,640
|
|
188
188
|
cognite/neat/_rules/models/dms/_exporter.py,sha256=u9lLHwa6DUsh-xlaSbuU1YV5-xvbXObAocWvsRphGfc,29438
|
|
189
|
-
cognite/neat/_rules/models/dms/_rules.py,sha256=
|
|
189
|
+
cognite/neat/_rules/models/dms/_rules.py,sha256=k0jCcfndWCJeBoA31wr2wBNCZkboEiAPbCfIreNo9vU,20139
|
|
190
190
|
cognite/neat/_rules/models/dms/_rules_input.py,sha256=MjkkoEa5lRzQE0NUJ7TyQsrelWSoyGCCDFjMVG5pQvc,11530
|
|
191
191
|
cognite/neat/_rules/models/dms/_schema.py,sha256=HSmSDvOm5S0x4Vb9tH9Jvd5i9tXiiM08E_Sdu6q_iA8,50783
|
|
192
192
|
cognite/neat/_rules/models/dms/_validation.py,sha256=2KL1_GNnJ5cjsdk9uJTBV691_o8ZehqmgXSiaN5q8aw,15798
|
|
@@ -195,7 +195,7 @@ cognite/neat/_rules/models/entities/__init__.py,sha256=QD-h79HhjqCsgscNU5kuf1ieR
|
|
|
195
195
|
cognite/neat/_rules/models/entities/_constants.py,sha256=ToiLaaF-hGLPfn3AsKIIrfB4ZdTk4cY1RjM9gA1Qjkg,288
|
|
196
196
|
cognite/neat/_rules/models/entities/_loaders.py,sha256=mb_iKnwGn1FOa4bcqIuvh4oy5tuUpOWF6pFOOB_9ndE,2693
|
|
197
197
|
cognite/neat/_rules/models/entities/_multi_value.py,sha256=5RgZBrJfw7VSE-6F50-Lqtio_xVo4vbezKmoyiDdcw8,2692
|
|
198
|
-
cognite/neat/_rules/models/entities/_single_value.py,sha256=
|
|
198
|
+
cognite/neat/_rules/models/entities/_single_value.py,sha256=tRu5jmCPnN35qxt0iJEVz_THcDUW6hShNCN_8DbREBE,17489
|
|
199
199
|
cognite/neat/_rules/models/entities/_types.py,sha256=df9rnXJJKciv2Bp-Ve2q4xdEJt6WWniq12Z0hW2d6sk,1917
|
|
200
200
|
cognite/neat/_rules/models/entities/_wrapped.py,sha256=FxC8HztW_tUUtuArAOwxyFfkdJnSEB4bgZoNmmmfiPk,7137
|
|
201
201
|
cognite/neat/_rules/models/information/__init__.py,sha256=fVvgXt-JuyZCP_mLgIVaeKD9pdAXe2BWUxU_BZs8e5g,480
|
|
@@ -242,7 +242,7 @@ cognite/neat/_utils/text.py,sha256=PvTEsEjaTu8SE8yYaKUrce4msboMj933dK7-0Eey_rE,3
|
|
|
242
242
|
cognite/neat/_utils/time_.py,sha256=O30LUiDH9TdOYz8_a9pFqTtJdg8vEjC3qHCk8xZblG8,345
|
|
243
243
|
cognite/neat/_utils/upload.py,sha256=qd8NA46fMvhCIDh66WNj8MiXv1ewDiFjvy59pSFkmG0,4604
|
|
244
244
|
cognite/neat/_utils/xml_.py,sha256=FQkq84u35MUsnKcL6nTMJ9ajtG9D5i1u4VBnhGqP2DQ,1710
|
|
245
|
-
cognite/neat/_version.py,sha256
|
|
245
|
+
cognite/neat/_version.py,sha256=-WRL9Kr5U8AJBJFauUkNo0TydWNSEsmomFHBDvlk0Uk,23
|
|
246
246
|
cognite/neat/_workflows/__init__.py,sha256=S0fZq7kvoqDKodHu1UIPsqcpdvXoefUWRPt1lqeQkQs,420
|
|
247
247
|
cognite/neat/_workflows/base.py,sha256=O1pcmfbme2gIVF2eOGrKZSUDmhZc8L9rI8UfvLN2YAM,26839
|
|
248
248
|
cognite/neat/_workflows/cdf_store.py,sha256=3pebnATPo6In4-1srpa3wzstynTOi3T6hwFX5uaie4c,18050
|
|
@@ -271,8 +271,8 @@ cognite/neat/_workflows/tasks.py,sha256=dr2xuIb8P5e5e9p_fjzRlvDbKsre2xGYrkc3wnRx
|
|
|
271
271
|
cognite/neat/_workflows/triggers.py,sha256=u69xOsaTtM8_WD6ZeIIBB-XKwvlZmPHAsZQh_TnyHcM,7073
|
|
272
272
|
cognite/neat/_workflows/utils.py,sha256=gKdy3RLG7ctRhbCRwaDIWpL9Mi98zm56-d4jfHDqP1E,453
|
|
273
273
|
cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
274
|
-
cognite_neat-0.96.
|
|
275
|
-
cognite_neat-0.96.
|
|
276
|
-
cognite_neat-0.96.
|
|
277
|
-
cognite_neat-0.96.
|
|
278
|
-
cognite_neat-0.96.
|
|
274
|
+
cognite_neat-0.96.4.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
|
|
275
|
+
cognite_neat-0.96.4.dist-info/METADATA,sha256=hQ8Xbxh2CawmdxuSiWPCFe9VhSc6A1uiT4wTuvoFNq4,9573
|
|
276
|
+
cognite_neat-0.96.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
277
|
+
cognite_neat-0.96.4.dist-info/entry_points.txt,sha256=SsQlnl8SNMSSjE3acBI835JYFtsIinLSbVmHmMEXv6E,51
|
|
278
|
+
cognite_neat-0.96.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|