lamindb 0.76.10__py3-none-any.whl → 0.76.11__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
@@ -43,7 +43,7 @@ Modules and settings.
43
43
  """
44
44
 
45
45
  # denote a release candidate for 0.1.0 with 0.1rc1, 0.1a1, 0.1b1, etc.
46
- __version__ = "0.76.10"
46
+ __version__ = "0.76.11"
47
47
 
48
48
  import os as _os
49
49
 
lamindb/_finish.py CHANGED
@@ -35,6 +35,13 @@ def prepare_notebook(
35
35
  if strip_title:
36
36
  lines.pop(i)
37
37
  cell["source"] = "\n".join(lines)
38
+ # strip resaved finish error if present
39
+ # this is normally the last cell
40
+ if cell["cell_type"] == "code" and ".finish(" in cell["source"]:
41
+ for output in cell["outputs"]:
42
+ if output.get("ename", None) == "NotebookNotSaved":
43
+ cell["outputs"] = []
44
+ break
38
45
  return None
39
46
 
40
47
 
@@ -112,7 +119,7 @@ def save_context_core(
112
119
  notebook_content = read_notebook(filepath) # type: ignore
113
120
  if not ignore_non_consecutive: # ignore_non_consecutive is None or False
114
121
  is_consecutive = check_consecutiveness(
115
- notebook_content, calling_statement=".finish()"
122
+ notebook_content, calling_statement=".finish("
116
123
  )
117
124
  if not is_consecutive:
118
125
  response = "n" # ignore_non_consecutive == False
@@ -90,10 +90,9 @@ def print_labels(
90
90
  # there is a try except block here to deal with schema inconsistencies
91
91
  # during transfer between instances
92
92
  try:
93
- field = get_name_field(self.__class__)
93
+ field = get_name_field(labels)
94
94
  labels_list = list(labels.values_list(field, flat=True))
95
95
  if len(labels_list) > 0:
96
- get_name_field(labels)
97
96
  print_values = _print_values(labels_list, n=10)
98
97
  type_str = f": {related_model}" if print_types else ""
99
98
  labels_msg += f" .{related_name}{type_str} = {print_values}\n"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lamindb
3
- Version: 0.76.10
3
+ Version: 0.76.11
4
4
  Summary: A data framework for biology.
5
5
  Author-email: Lamin Labs <open-source@lamin.ai>
6
6
  Requires-Python: >=3.9
@@ -9,9 +9,9 @@ Classifier: Programming Language :: Python :: 3.9
9
9
  Classifier: Programming Language :: Python :: 3.10
10
10
  Classifier: Programming Language :: Python :: 3.11
11
11
  Requires-Dist: lnschema_core==0.74.6
12
- Requires-Dist: lamindb_setup==0.77.6
12
+ Requires-Dist: lamindb_setup==0.77.7
13
13
  Requires-Dist: lamin_utils==0.13.6
14
- Requires-Dist: lamin_cli==0.17.7
14
+ Requires-Dist: lamin_cli==0.17.8
15
15
  Requires-Dist: rapidfuzz
16
16
  Requires-Dist: pyarrow
17
17
  Requires-Dist: typing_extensions!=4.6.0
@@ -23,7 +23,7 @@ Requires-Dist: pandas
23
23
  Requires-Dist: graphviz
24
24
  Requires-Dist: psycopg2-binary
25
25
  Requires-Dist: lamindb_setup[aws] ; extra == "aws"
26
- Requires-Dist: bionty==0.51.0 ; extra == "bionty"
26
+ Requires-Dist: bionty==0.51.1 ; extra == "bionty"
27
27
  Requires-Dist: line_profiler ; extra == "dev"
28
28
  Requires-Dist: pre-commit ; extra == "dev"
29
29
  Requires-Dist: nox ; extra == "dev"
@@ -1,4 +1,4 @@
1
- lamindb/__init__.py,sha256=v9w-nrHLcZ-rTZpYg3rzF3D6YckA8JJpyEuDXMDY2ME,2278
1
+ lamindb/__init__.py,sha256=-uf_cdV7PtdeKSV5FnhmeJrYFFMu4pTV4WgjQTXFb4I,2278
2
2
  lamindb/_artifact.py,sha256=kbAQp65KqskAnwx8kBBzh2Jb7HRhVBAQJD4xapj57rk,45011
3
3
  lamindb/_can_validate.py,sha256=1pUavLwZ_yPAtbVYKOGYUHaPxlJGZ246qZ0e-4ZUDSc,19552
4
4
  lamindb/_collection.py,sha256=TSkJ3z0axRAFrV2PvZf1YMz7NXWLX3hYoNQ48l4NoyM,14129
@@ -6,7 +6,7 @@ lamindb/_curate.py,sha256=KpEP0-9nQUmiRn6z7fiGs6BmQdpqSg3QPlAgV-S9_wA,58839
6
6
  lamindb/_feature.py,sha256=nZhtrH0ssoNls-hV-dkwfK9sKypg2El59R9qfarxfUE,5340
7
7
  lamindb/_feature_set.py,sha256=lHKATvs8NagaaHwsWqi4XMTPTNKsGdM-6ZRctTHHSNc,8130
8
8
  lamindb/_filter.py,sha256=NMxIX67gYqN7n3lA4XL6hRgAaAFhpwnwxm3vBA5XGlU,683
9
- lamindb/_finish.py,sha256=fNM2A6J8OHcor5qFHE4HsXMgzsRekMlpUBaQWXA0d54,9231
9
+ lamindb/_finish.py,sha256=yoVmgaUx5SBKMlA_wUKsJhNmUjtOD65l-4CZ3oXXNvk,9570
10
10
  lamindb/_from_values.py,sha256=iqcR8T8i9VZpnn09W441zW-djhWMh8EZj7XFJq9jP2k,14211
11
11
  lamindb/_is_versioned.py,sha256=5lAnhTboltFkZCKVRV1uxkm0OCjJz_HKi3yQq_vEuMs,1306
12
12
  lamindb/_parents.py,sha256=eMavdd6IO6STOVJSlR2TzdRtx6sKYDKsMOtlR3DZlgQ,15599
@@ -25,7 +25,7 @@ lamindb/core/_context.py,sha256=TD5k0F-igJRwWBjXMaw3Lh3WtgtY3GLl_a7dZ7GHUu4,2263
25
25
  lamindb/core/_data.py,sha256=P0vlbw_UQp9UDNMmUo9YFxqurcWtMaKPWCT12IRA2C0,19672
26
26
  lamindb/core/_django.py,sha256=mqZ0WhTakLDrGVp3MVI6RNfu8kZ2L5BiEnMwXnkfsG0,6760
27
27
  lamindb/core/_feature_manager.py,sha256=jRdBVlWE5GA9vcbiiT54WL-yix4Dptbe-YtxzayvUr0,37319
28
- lamindb/core/_label_manager.py,sha256=Z21efQjZJVNGzZ77GjQvlpkWuXWa1kIIc1RxP8_VOoY,11159
28
+ lamindb/core/_label_manager.py,sha256=GoluSFk_z1c1fZw8OGKkaIURWgognEsOHCo9mzigd-A,11108
29
29
  lamindb/core/_mapped_collection.py,sha256=M50haewVAFONeF71QQbzD09L8lVZCL1hyf0W87jKE5U,24575
30
30
  lamindb/core/_settings.py,sha256=f7TCIx9cYFpLH9ja7OCMLpAgrOJRZUP8Rr_xJKToMlk,5979
31
31
  lamindb/core/_sync_git.py,sha256=qc0yfPyKeG4uuNT_3qsv-mkIMqhLFqfXNeNVO49vV00,4547
@@ -55,7 +55,7 @@ lamindb/integrations/__init__.py,sha256=RWGMYYIzr8zvmNPyVB4m-p4gMDhxdRbjES2Ed23O
55
55
  lamindb/integrations/_vitessce.py,sha256=S51wl7iF2QvQmrNcZ9yDdqTtcn_AAzuh0i5axKwQ2sM,4560
56
56
  lamindb/setup/__init__.py,sha256=OwZpZzPDv5lPPGXZP7-zK6UdO4FHvvuBh439yZvIp3A,410
57
57
  lamindb/setup/core/__init__.py,sha256=SevlVrc2AZWL3uALbE5sopxBnIZPWZ1IB0NBDudiAL8,167
58
- lamindb-0.76.10.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
59
- lamindb-0.76.10.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
60
- lamindb-0.76.10.dist-info/METADATA,sha256=bcJSYatkprk0Mfvt2dgWWW6v80xbt_mnnvtyFrMgp0s,2369
61
- lamindb-0.76.10.dist-info/RECORD,,
58
+ lamindb-0.76.11.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
59
+ lamindb-0.76.11.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
60
+ lamindb-0.76.11.dist-info/METADATA,sha256=ZbXuWNskfvWAFEfX7FKkc5zakPnKW2IOSTx8rTZ9dag,2369
61
+ lamindb-0.76.11.dist-info/RECORD,,