Skip to content

Commit 7575916

Browse files
authored
Merge pull request #127 from Labelbox/ms/bug-fix
fixed bugs, ready for release
2 parents 9b8d449 + 88f79d9 commit 7575916

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

CHANGELOG.md

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

3+
# Version 2.5.2 (2021-03-25)
4+
## Fix
5+
* Ontology builder defaults to None for missing fields instead of empty lists
6+
* MAL validation added extra fields to subclasses
7+
8+
### Added
9+
* Example notebooks
10+
311
## Version 2.5.1 (2021-03-15)
412
### Fix
513
* `Dataset.data_row_for_external_id` No longer throws `ResourceNotFoundError` when there are duplicates

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The Labelbox Python API offers a simple, user-friendly way to interact with the
66

77
## Requirements
88

9-
* Use Python 3.7 or 3.8.
9+
* Use Python 3.6, 3.7 or 3.8.
1010
* Create an account by visiting http://app.labelbox.com/.
1111
* [Generate an API key](https://labelbox.com/docs/api/getting-started#create_api_key).
1212

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Structure:
1010
* [Data rows](basics/data_rows.ipynb)
1111
* [Datasets](basics/datasets.ipynb)
1212
* [Labels](basics/labels.ipynb)
13-
* [Ontologies](basics/ontology.ipynb)
13+
* [Ontologies](basics/ontologies.ipynb)
1414
* [Projects](basics/projects.ipynb)
1515
2. label_export
1616
* [Image annotation export](label_export/images.ipynb)

labelbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "labelbox"
2-
__version__ = "2.5.1"
2+
__version__ = "2.5.2"
33

44
from labelbox.client import Client
55
from labelbox.schema.bulk_import_request import BulkImportRequest

labelbox/schema/bulk_import_request.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -632,14 +632,14 @@ def validate_subclasses(cls, value, field):
632632
#Create uuid and datarow id so we don't have to define classification objects twice
633633
#This is caused by the fact that we require these ids for top level classifications but not for subclasses
634634
results = []
635+
dummy_id = 'child'.center(25, '_')
635636
for row in value:
636-
row.update({
637-
'dataRow': {
638-
'id': 'child'.center(25, '_')
637+
results.append({
638+
**row, 'dataRow': {
639+
'id': dummy_id
639640
},
640641
'uuid': str(uuid4())
641642
})
642-
results.append(row)
643643
return results
644644

645645

0 commit comments

Comments
 (0)