Skip to content

Commit d81f8ea

Browse files
author
Matt Sokoloff
committed
Merge branch 'develop' of https://github.com/Labelbox/labelbox-python into ms/fix-annotation-import-tests
2 parents 74056d5 + cbe80f0 commit d81f8ea

27 files changed

+644
-517
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
# Version 3.36.1 (2023-01-24)
4+
### Fixed
5+
* `confidence` is now optional for TextEntity
6+
7+
# Version 3.36.0 (2023-01-23)
8+
### Fixed
9+
* `confidence` attribute is now supported for TextEntity and Line predictions
10+
11+
# Version 3.35.0 (2023-01-18)
12+
### Fixed
13+
* Retry 520 errors when uploading files
14+
315
# Version 3.34.0 (2022-12-22)
416
### Added
517
* Added `get_by_name()` method to MetadataOntology object to access both custom and reserved metadata by name.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.7
1+
FROM python:3.9-slim-bullseye
22

33
RUN pip install pytest pytest-cases pytest-rerunfailures
44
RUN apt-get -y update

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test-staging: build
2121
-e LABELBOX_TEST_ENVIRON="staging" \
2222
-e DA_GCP_LABELBOX_API_KEY=${DA_GCP_LABELBOX_API_KEY} \
2323
-e LABELBOX_TEST_API_KEY_STAGING=${LABELBOX_TEST_API_KEY_STAGING} \
24-
local/labelbox-python:test pytest $(PATH_TO_TEST)
24+
local/labelbox-python:test pytest -n 10 $(PATH_TO_TEST)
2525

2626
test-prod: build
2727
docker run -it -v ${PWD}:/usr/src -w /usr/src \

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
copyright = '2021, Labelbox'
2222
author = 'Labelbox'
2323

24-
release = '3.34.0'
24+
release = '3.36.1'
2525

2626
# -- General configuration ---------------------------------------------------
2727

examples/annotation_import/image.ipynb

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
},
2121
"source": [
2222
"<td>\n",
23-
"<a href=\"https://colab.research.google.com/github/Labelbox/labelbox-python/blob/develop/examples/annotation_import/image_annotation_import.ipynb\" target=\"_blank\"><img\n",
23+
"<a href=\"https://colab.research.google.com/github/Labelbox/labelbox-python/blob/develop/examples/annotation_import/image.ipynb\" target=\"_blank\"><img\n",
2424
"src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"></a>\n",
2525
"</td>\n",
2626
"\n",
2727
"\n",
2828
"\n",
2929
"\n",
3030
"<td>\n",
31-
"<a href=\"https://github.com/Labelbox/labelbox-python/tree/develop/examples/annotation_import/image_annotation_import.ipynb\" target=\"_blank\"><img\n",
31+
"<a href=\"https://github.com/Labelbox/labelbox-python/tree/develop/examples/annotation_import/image.ipynb\" target=\"_blank\"><img\n",
3232
"src=\"https://img.shields.io/badge/GitHub-100000?logo=github&logoColor=white\" alt=\"GitHub\"></a>\n",
3333
"</td>"
3434
]
@@ -810,13 +810,6 @@
810810
" ]\n",
811811
")\n",
812812
"\n",
813-
"# Create urls to mask data for upload\n",
814-
"def signing_function(obj_bytes: bytes) -> str:\n",
815-
" url = client.upload_data(content=obj_bytes, sign=True)\n",
816-
" return url\n",
817-
"\n",
818-
"label.add_url_to_masks(signing_function)\n",
819-
"\n",
820813
"# Convert our label from a Labelbox class object to the underlying NDJSON format required for upload \n",
821814
"label_ndjson = list(NDJsonConverter.serialize([label]))"
822815
],

0 commit comments

Comments
 (0)