File tree Expand file tree Collapse file tree 5 files changed +7
-8
lines changed
examples/model_assisted_labeling Expand file tree Collapse file tree 5 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ # Version 2.7b1+mea (2021-06-27)
4
+ ## Fix
5
+ * No longer convert ` ModelRun.created_by_id ` to cuid on construction of a ` ModelRun ` .
6
+ * This was causing queries for ModelRuns to fail.
7
+
3
8
# Version 2.7b0+mea (2021-06-27)
4
9
## Fix
5
10
* Update ` AnnotationGroup ` to expect labelId to be a cuid instead of uuid.
Original file line number Diff line number Diff line change 29
29
"metadata" : {},
30
30
"outputs" : [],
31
31
"source" : [
32
- " !pip install labelbox==2.7b0 \\\n " ,
32
+ " !pip install labelbox==2.7b1 \\\n " ,
33
33
" requests \\\n " ,
34
34
" ndjson \\\n " ,
35
35
" scikit-image \\\n " ,
Original file line number Diff line number Diff line change 1
1
name = "labelbox"
2
- __version__ = "2.7b0 "
2
+ __version__ = "2.7b1 "
3
3
4
4
from labelbox .client import Client
5
5
from labelbox .schema .model import Model
Original file line number Diff line number Diff line change 1
1
from typing import Dict , Iterable , Union
2
2
from pathlib import Path
3
3
4
- from labelbox .utils import uuid_to_cuid
5
4
from labelbox .pagination import PaginatedCollection
6
5
from labelbox .schema .annotation_import import MEAPredictionImport
7
6
from labelbox .orm .query import results_query_part
@@ -16,10 +15,6 @@ class ModelRun(DbObject):
16
15
created_by_id = Field .String ("created_by_id" , "createdBy" )
17
16
model_id = Field .String ("model_id" )
18
17
19
- def __init__ (self , client , field_values ):
20
- field_values ['createdBy' ] = uuid_to_cuid (field_values ['createdBy' ])
21
- super ().__init__ (client , field_values )
22
-
23
18
def upsert_labels (self , label_ids ):
24
19
25
20
if len (label_ids ) < 1 :
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ def test_labels(label_pack):
31
31
assert list (data_row .labels ()) == []
32
32
33
33
34
-
35
34
def test_label_export (configured_project_with_label ):
36
35
project = configured_project_with_label
37
36
exported_labels_url = project .export_labels ()
You can’t perform that action at this time.
0 commit comments