lamindb 1.5.1__py3-none-any.whl → 1.5.3__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 CHANGED
@@ -94,7 +94,7 @@ Low-level functionality.
94
94
 
95
95
  # ruff: noqa: I001
96
96
  # denote a release candidate for 0.1.0 with 0.1rc1, 0.1a1, 0.1b1, etc.
97
- __version__ = "1.5.1"
97
+ __version__ = "1.5.3"
98
98
 
99
99
  import warnings
100
100
 
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(
@@ -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(
lamindb/models/schema.py CHANGED
@@ -856,7 +856,7 @@ class Schema(Record, CanCurate, TracksRun):
856
856
  """Save."""
857
857
  from .save import bulk_create
858
858
 
859
- if not self._state.adding:
859
+ if self.pk is not None:
860
860
  features = (
861
861
  self._features[1]
862
862
  if hasattr(self, "_features")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lamindb
3
- Version: 1.5.1
3
+ Version: 1.5.3
4
4
  Summary: A data framework for biology.
5
5
  Author-email: Lamin Labs <open-source@lamin.ai>
6
6
  Requires-Python: >=3.10,<3.14
@@ -1,4 +1,4 @@
1
- lamindb/__init__.py,sha256=LgGBliPC6cKo95tRnosq_SuMBgRGjlQF0wNmEBHuo10,2676
1
+ lamindb/__init__.py,sha256=Rkr5XTPlBm9eIYCFisukL-u59iT4hl15dFLQPPpj6gQ,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=hbmVGXRwBNxKRRwpS9h9JR7AiVWZzqgI848FBdekDAQ,59818
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=JDV9I5Pf47UgsyGGd4xgEvzH6sEmG37De7vJouaR4B0,110183
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
@@ -98,12 +98,12 @@ lamindb/models/query_set.py,sha256=xKh5QjAlHunktB1S4x9f42Fg0SP_-sK7XlyxStIRDSo,3
98
98
  lamindb/models/record.py,sha256=fomXuOcqkfiYF3zEdiUkYw9x00qP5flM7oseUUomhIo,61354
99
99
  lamindb/models/run.py,sha256=FzqVQhYj4DXqlnmHvNIziOCAlx9K0wISXBLpom1Yb74,20688
100
100
  lamindb/models/save.py,sha256=JTAaorKECx0ZeHaX0H9Yt4MDwOsT9F813WbSJkBIPaU,13339
101
- lamindb/models/schema.py,sha256=5_31iIPh19eJn0rm1OTeFk0gtD0YUPrTbiPsglKWOeo,47753
101
+ lamindb/models/schema.py,sha256=RMPiOj3gwaEhFA7lHEOWL7kzMz_comYSyuyIrstLzhs,47750
102
102
  lamindb/models/transform.py,sha256=LGnTR7g_rAx3YFAFv4l4_UzabruKQlnui1Y3tlWHwXk,12731
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.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
107
- lamindb-1.5.1.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
108
- lamindb-1.5.1.dist-info/METADATA,sha256=juLd0ioSI6_wrvJOzGLsfY_8L019WlgLqEnIDj2OolA,2782
109
- lamindb-1.5.1.dist-info/RECORD,,
106
+ lamindb-1.5.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
107
+ lamindb-1.5.3.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
108
+ lamindb-1.5.3.dist-info/METADATA,sha256=4cVJtBRtnn12zf-ZnlXQbKcwZmJOCSnD0nxYkrGsxuw,2782
109
+ lamindb-1.5.3.dist-info/RECORD,,