lamindb 1.5.1__py3-none-any.whl → 1.5.2__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.
- lamindb/__init__.py +1 -1
- lamindb/curators/core.py +2 -0
- lamindb/models/artifact.py +6 -0
- {lamindb-1.5.1.dist-info → lamindb-1.5.2.dist-info}/METADATA +1 -1
- {lamindb-1.5.1.dist-info → lamindb-1.5.2.dist-info}/RECORD +7 -7
- {lamindb-1.5.1.dist-info → lamindb-1.5.2.dist-info}/LICENSE +0 -0
- {lamindb-1.5.1.dist-info → lamindb-1.5.2.dist-info}/WHEEL +0 -0
lamindb/__init__.py
CHANGED
lamindb/curators/core.py
CHANGED
@@ -305,6 +305,8 @@ class SlotsCurator(Curator):
|
|
305
305
|
for slot, curator in self._slots.items():
|
306
306
|
logger.info(f"validating slot {slot} ...")
|
307
307
|
curator.validate()
|
308
|
+
# set _is_validated to True as no slot raised an error
|
309
|
+
self._is_validated = True
|
308
310
|
|
309
311
|
@doc_args(SAVE_ARTIFACT_DOCSTRING)
|
310
312
|
def save_artifact(
|
lamindb/models/artifact.py
CHANGED
@@ -2360,6 +2360,11 @@ class Artifact(Record, IsVersioned, TracksRun, TracksUpdates):
|
|
2360
2360
|
|
2361
2361
|
if hasattr(self, "_memory_rep") and self._memory_rep is not None:
|
2362
2362
|
access_memory = self._memory_rep
|
2363
|
+
# SpatialData objects zarr stores are moved when saved
|
2364
|
+
# SpatialData's __repr__ method attempts to access information from the old path
|
2365
|
+
# Therefore, we need to update the in-memory path to the now moved Artifact storage path
|
2366
|
+
if access_memory.__class__.__name__ == "SpatialData":
|
2367
|
+
access_memory.path = self._cache_path
|
2363
2368
|
else:
|
2364
2369
|
filepath, cache_key = filepath_cache_key_from_artifact(
|
2365
2370
|
self, using_key=settings._using_key
|
@@ -2392,6 +2397,7 @@ class Artifact(Record, IsVersioned, TracksRun, TracksUpdates):
|
|
2392
2397
|
access_memory = load_to_memory(cache_path, **kwargs)
|
2393
2398
|
# only call if load is successfull
|
2394
2399
|
_track_run_input(self, is_run_input)
|
2400
|
+
|
2395
2401
|
return access_memory
|
2396
2402
|
|
2397
2403
|
def cache(
|
@@ -1,4 +1,4 @@
|
|
1
|
-
lamindb/__init__.py,sha256=
|
1
|
+
lamindb/__init__.py,sha256=yrNn0pSKCbdmvx_KKQ98PZraCdjzqMPwcwlHR3IoDvg,2676
|
2
2
|
lamindb/_finish.py,sha256=Wqb846pCErsx5ZPulAfdF5PJbWzgAdfbuYuf4FndfhY,20124
|
3
3
|
lamindb/_tracked.py,sha256=fse_H0ehc9WvU_l1572g7qya0sRdWCh22LZkq0XU4ic,4445
|
4
4
|
lamindb/_view.py,sha256=kSmG8X4ULQZEKxY7ESnthQqsUf1DEzoYGeTLYRU1I7s,4938
|
@@ -40,7 +40,7 @@ lamindb/core/subsettings/_annotation_settings.py,sha256=o-yTYw-NmjFmtehbKU8qnf7t
|
|
40
40
|
lamindb/core/subsettings/_creation_settings.py,sha256=NGHWKqCFSzVNBxAr2VnmdYguiFdW29XUK7T9wRsVshg,906
|
41
41
|
lamindb/curators/__init__.py,sha256=ZexikeaVunT24TqsR1NsSOCSBXDBigfGtFT55tBwqS8,371
|
42
42
|
lamindb/curators/_legacy.py,sha256=dTim3YFvdYyMsn6y8qSYkbCnnEI4tlaevN2-OO_qEx8,76174
|
43
|
-
lamindb/curators/core.py,sha256=
|
43
|
+
lamindb/curators/core.py,sha256=YwMcKV2rAEhTav_fBixMM_sON2iUeu8JHGgxgcTjBn4,59915
|
44
44
|
lamindb/curators/_cellxgene_schemas/__init__.py,sha256=zqlFzMNMDGEBe6DV0gBsBMpfc9UHvNv1EpBsz_ktMoA,7502
|
45
45
|
lamindb/curators/_cellxgene_schemas/schema_versions.csv,sha256=X9rmO88TW1Fht1f5mJs0JdW-VPvyKSajpf8lHNeECj4,1680
|
46
46
|
lamindb/examples/__init__.py,sha256=DGImiuWYDvwxh78p5FCwQWClEwsE3ODLU49i_NqbW0c,533
|
@@ -84,7 +84,7 @@ lamindb/models/_from_values.py,sha256=-8l3_d2Nm14kzi1FjEYvBwyuucL-ZcDSjlMufIb4Xo
|
|
84
84
|
lamindb/models/_is_versioned.py,sha256=Th2_cBf9UWh27E6ANxg6LGmjBOumXFy7AjH0GG4FoXA,7601
|
85
85
|
lamindb/models/_label_manager.py,sha256=QOT6mz_rzPJ5p7hM1l-XzDWzyWUERpmAan2n_ma5wpI,12112
|
86
86
|
lamindb/models/_relations.py,sha256=ONjHPiWIa_Ur7zMNTa_9Uw7K-366GORyPvGoVjf4EQs,3681
|
87
|
-
lamindb/models/artifact.py,sha256=
|
87
|
+
lamindb/models/artifact.py,sha256=6F_jcZiG1LeLT5HKSPCBiKUU-ItFM24aHyqWrwl1egc,110565
|
88
88
|
lamindb/models/artifact_set.py,sha256=VOZEGDo3m_9Yg_ftx3I2fwdydjHN61X_qV18N6xG4kM,4117
|
89
89
|
lamindb/models/can_curate.py,sha256=5dXHCRoJzLg2y9YDhpH7CyWexxliFHilwJ_UPjjZwRI,29188
|
90
90
|
lamindb/models/collection.py,sha256=TNXnrR86ZgsSfEvaOuAEItgZ947klTXXZspa7hpyVmw,27288
|
@@ -103,7 +103,7 @@ lamindb/models/transform.py,sha256=LGnTR7g_rAx3YFAFv4l4_UzabruKQlnui1Y3tlWHwXk,1
|
|
103
103
|
lamindb/models/ulabel.py,sha256=yn9ttz28MqDBh6ZgwH7cty6GHCJOzLJn2IEpspYosDo,8793
|
104
104
|
lamindb/setup/__init__.py,sha256=OwZpZzPDv5lPPGXZP7-zK6UdO4FHvvuBh439yZvIp3A,410
|
105
105
|
lamindb/setup/core/__init__.py,sha256=SevlVrc2AZWL3uALbE5sopxBnIZPWZ1IB0NBDudiAL8,167
|
106
|
-
lamindb-1.5.
|
107
|
-
lamindb-1.5.
|
108
|
-
lamindb-1.5.
|
109
|
-
lamindb-1.5.
|
106
|
+
lamindb-1.5.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
107
|
+
lamindb-1.5.2.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
108
|
+
lamindb-1.5.2.dist-info/METADATA,sha256=d13GwaEiF6_3iCOJIBVB3XVQJTt5wQhptuk77Te4JZM,2782
|
109
|
+
lamindb-1.5.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|