Skip to content

Commit 617e8c6

Browse files
authored
Merge branch 'develop' into lgluszek/PTDT-2854
2 parents 8974e49 + 0482921 commit 617e8c6

File tree

10 files changed

+18
-8
lines changed

10 files changed

+18
-8
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
project = 'Python SDK reference'
1717
copyright = '2024, Labelbox'
1818
author = 'Labelbox'
19-
release = '6.4.0'
19+
release = '6.5.0'
2020

2121
# -- General configuration ---------------------------------------------------
2222

libs/labelbox/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Changelog
2+
# Version 6.5.0 (2025-01-03)
3+
## Added
4+
* Support include predictions in catalog exports([#1935](https://github.com/Labelbox/labelbox-python/pull/1935))
5+
26
# Version 6.4.0 (2024-12-19)
37
* Add feature schema attributes to support auto ocr tool in ontologies([#1930](https://github.com/Labelbox/labelbox-python/pull/1930))
48
* Move to task queue task id to be optional with default as None for better type support ([#1929](https://github.com/Labelbox/labelbox-python/pull/1929))

libs/labelbox/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "labelbox"
3-
version = "6.4.0"
3+
version = "6.5.0"
44
description = "Labelbox Python API"
55
authors = [{ name = "Labelbox", email = "engineering@labelbox.com" }]
66
dependencies = [

libs/labelbox/src/labelbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "labelbox"
22

3-
__version__ = "6.4.0"
3+
__version__ = "6.5.0"
44

55
from labelbox.client import Client
66
from labelbox.schema.annotation_import import (

libs/labelbox/src/labelbox/schema/catalog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def _export(
104104
"interpolated_frames": False,
105105
"all_projects": False,
106106
"all_model_runs": False,
107+
"predictions": False,
107108
}
108109
)
109110
validate_catalog_export_params(_params)

libs/labelbox/src/labelbox/schema/data_row.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ def _export(
315315
"interpolated_frames": False,
316316
"all_projects": False,
317317
"all_model_runs": False,
318+
"predictions": False,
318319
}
319320
)
320321

libs/labelbox/src/labelbox/schema/dataset.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ def _export(
392392
"interpolated_frames": False,
393393
"all_projects": False,
394394
"all_model_runs": False,
395+
"predictions": False,
395396
}
396397
)
397398
validate_catalog_export_params(_params)

libs/labelbox/src/labelbox/schema/export_params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class CatalogExportParams(DataRowParams):
2929
interpolated_frames: Optional[bool]
3030
all_projects: Optional[bool]
3131
all_model_runs: Optional[bool]
32+
predictions: Optional[bool]
3233

3334

3435
class ModelRunExportParams(DataRowParams):

libs/labelbox/src/labelbox/schema/slice.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ def _export(
160160
"interpolated_frames": False,
161161
"all_projects": False,
162162
"all_model_runs": False,
163+
"predictions": False,
163164
}
164165
)
165166
validate_catalog_export_params(_params)

libs/labelbox/tests/integration/test_mmc_data_rows.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ def mmc_data_row(dataset):
2323

2424

2525
@pytest.fixture
26-
def mmc_data_row_all(dataset, make_metadata_fields, embedding):
26+
def mmc_data_row_all(dataset, make_metadata_fields, embedding, rand_gen):
2727
data = ModelEvaluationTemplate()
2828
data.row_data.rootMessageIds = ["root1"]
29-
data.global_key = "global_key"
29+
global_key = f"global_key_{rand_gen(str)}"
30+
data.global_key = global_key
3031
vector = [random.uniform(1.0, 2.0) for _ in range(embedding.dims)]
3132
data.embeddings = [{"embedding_id": embedding.id, "vector": vector}]
3233
data.metadata_fields = make_metadata_fields
@@ -39,7 +40,7 @@ def mmc_data_row_all(dataset, make_metadata_fields, embedding):
3940

4041
data_row = list(dataset.data_rows())[0]
4142

42-
yield data_row
43+
yield data_row, global_key
4344

4445
data_row.delete()
4546

@@ -57,7 +58,7 @@ def test_mmc(mmc_data_row):
5758

5859

5960
def test_mmc_all(mmc_data_row_all, embedding, constants):
60-
data_row = mmc_data_row_all
61+
data_row, global_key = mmc_data_row_all
6162
assert json.loads(data_row.row_data) == {
6263
"type": "application/vnd.labelbox.conversational.model-chat-evaluation",
6364
"draft": True,
@@ -66,7 +67,7 @@ def test_mmc_all(mmc_data_row_all, embedding, constants):
6667
"messages": {},
6768
"version": 2,
6869
}
69-
assert data_row.global_key == "global_key"
70+
assert data_row.global_key == global_key
7071
metadata_fields = data_row.metadata_fields
7172
metadata = data_row.metadata
7273
assert len(metadata_fields) == 3

0 commit comments

Comments
 (0)