File tree Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 11
11
# Important: Don't change this otherwise we will stop testing the earliest
12
12
# python version we have to support.
13
13
- image : python:3.6-buster
14
- resource_class : small
14
+ resource_class : medium
15
15
parallelism : 6
16
16
steps :
17
17
- checkout # checkout source code to working directory
Original file line number Diff line number Diff line change @@ -5,10 +5,16 @@ All notable changes to the [Nucleus Python Client](https://github.com/scaleapi/n
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
8
- ## [ 0.14.11] ( https://github.com/scaleapi/nucleus-python-client/releases/tag/v0.14.12 ) - 2022-08-05
8
+ ## [ 0.14.13] ( https://github.com/scaleapi/nucleus-python-client/releases/tag/v0.14.13 ) - 2022-08-10
9
+
10
+ ### Fixed
11
+ - Fix payload parsing for scene export
12
+
13
+ ## [ 0.14.12] ( https://github.com/scaleapi/nucleus-python-client/releases/tag/v0.14.12 ) - 2022-08-05
9
14
10
15
### Added
11
16
- Added auto-paginated ` Slice.export_predictions_generator `
17
+
12
18
### Fixed
13
19
- Change ` {Dataset,Slice}.items_and_annotation_generator ` to work with improved paginate endpoint
14
20
Original file line number Diff line number Diff line change @@ -139,11 +139,21 @@ def from_json(cls, payload: dict):
139
139
image_url = payload .get (IMAGE_URL_KEY , None ) or payload .get (
140
140
ORIGINAL_IMAGE_URL_KEY , None
141
141
)
142
+ pointcloud_url = payload .get (POINTCLOUD_URL_KEY , None )
143
+
144
+ # handle case when re-converting Scene.from_json
145
+ url = payload .get (URL_KEY , None )
146
+ if url and not image_url and not pointcloud_url :
147
+ if url .split ("." )[- 1 ] in ("jpg" , "png" ):
148
+ image_url = url
149
+ elif url .split ("." )[- 1 ] in ("json" ,):
150
+ pointcloud_url = url
151
+
142
152
if BACKEND_REFERENCE_ID_KEY in payload :
143
153
payload [REFERENCE_ID_KEY ] = payload [BACKEND_REFERENCE_ID_KEY ]
144
154
return cls (
145
155
image_location = image_url ,
146
- pointcloud_location = payload . get ( POINTCLOUD_URL_KEY , None ) ,
156
+ pointcloud_location = pointcloud_url ,
147
157
reference_id = payload .get (REFERENCE_ID_KEY , None ),
148
158
metadata = payload .get (METADATA_KEY , {}),
149
159
upload_to_scale = payload .get (UPLOAD_TO_SCALE_KEY , True ),
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ exclude = '''
21
21
22
22
[tool .poetry ]
23
23
name = " scale-nucleus"
24
- version = " 0.14.12 "
24
+ version = " 0.14.13 "
25
25
description = " The official Python client library for Nucleus, the Data Platform for AI"
26
26
license = " MIT"
27
27
authors = [" Scale AI Nucleus Team <nucleusapi@scaleapi.com>" ]
You can’t perform that action at this time.
0 commit comments