Skip to content

fixed bugs, ready for release #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 25, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

# Version 2.5.2 (2021-03-25)
## Fix
* Ontology builder defaults to None for missing fields instead of empty lists
* MAL validation added extra fields to subclasses

### Added
* Example notebooks

## Version 2.5.1 (2021-03-15)
### Fix
* `Dataset.data_row_for_external_id` No longer throws `ResourceNotFoundError` when there are duplicates
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The Labelbox Python API offers a simple, user-friendly way to interact with the

## Requirements

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

Expand Down
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Structure:
* [Data rows](basics/data_rows.ipynb)
* [Datasets](basics/datasets.ipynb)
* [Labels](basics/labels.ipynb)
* [Ontologies](basics/ontology.ipynb)
* [Ontologies](basics/ontologies.ipynb)
* [Projects](basics/projects.ipynb)
2. label_export
* [Image annotation export](label_export/images.ipynb)
Expand Down
2 changes: 1 addition & 1 deletion labelbox/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "labelbox"
__version__ = "2.5.1"
__version__ = "2.5.2"

from labelbox.client import Client
from labelbox.schema.bulk_import_request import BulkImportRequest
Expand Down
5 changes: 2 additions & 3 deletions labelbox/schema/bulk_import_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,13 +633,12 @@ def validate_subclasses(cls, value, field):
#This is caused by the fact that we require these ids for top level classifications but not for subclasses
results = []
for row in value:
row.update({
'dataRow': {
results.append({
**row, 'dataRow': {
'id': 'child'.center(25, '_')
},
'uuid': str(uuid4())
})
results.append(row)
return results


Expand Down