Skip to content

Commit 034699d

Browse files
authored
Document for geographic metadata (#349)
1 parent efd05db commit 034699d

File tree

6 files changed

+21
-2
lines changed

6 files changed

+21
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to the [Nucleus Python Client](https://github.com/scaleapi/n
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.14.19](https://github.com/scaleapi/nucleus-python-client/releases/tag/v0.14.19) - 2022-08-26
9+
10+
### Added
11+
- Support for Coordinate metadata values. See [upload metadata](https://nucleus.scale.com/docs/upload-metadata) for more information.
12+
813
## [0.14.18](https://github.com/scaleapi/nucleus-python-client/releases/tag/v0.14.18) - 2022-08-16
914

1015
### Added

nucleus/annotation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ class BoxAnnotation(Annotation): # pylint: disable=R0902
132132
attach to this annotation. Strings, floats and ints are supported best
133133
by querying and insights features within Nucleus. For more details see
134134
our `metadata guide <https://nucleus.scale.com/docs/upload-metadata>`_.
135+
136+
Coordinate metadata may be provided to enable the Map Chart in the Nucleus Dataset charts page.
137+
These values can be specified as `{"lat": 52.5, "lon": 13.3, ... }`.
138+
135139
embedding_vector: Custom embedding vector for this object annotation.
136140
If any custom object embeddings have been uploaded previously to this dataset,
137141
this vector must match the dimensions of the previously ingested vectors.

nucleus/dataset_item.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ class DatasetItem: # pylint: disable=R0902
8686
<https://nucleus.scale.com/docs/uploading-3d-data>`_ for more
8787
info.
8888
89+
Coordinate metadata may be provided to enable the Map Chart in the Nucleus Dataset charts page.
90+
These values can be specified as `{"lat": 52.5, "lon": 13.3, ... }`.
91+
8992
.. todo ::
9093
Shorten this once we have a guide migrated for metadata, or maybe link
9194
from other places to here.

nucleus/prediction.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ class BoxPrediction(BoxAnnotation):
158158
attach to this annotation. Strings, floats and ints are supported best
159159
by querying and insights features within Nucleus. For more details see
160160
our `metadata guide <https://nucleus.scale.com/docs/upload-metadata>`_.
161+
162+
Coordinate metadata may be provided to enable the Map Chart in the Nucleus Dataset charts page.
163+
These values can be specified as `{"lat": 52.5, "lon": 13.3, ... }`.
164+
161165
class_pdf: An optional complete class probability distribution on this
162166
annotation. Each value should be between 0 and 1 (inclusive), and sum up to
163167
1 as a complete distribution. This can be useful for computing entropy to

nucleus/scene.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,10 @@ class LidarScene(Scene):
381381
frames (Optional[List[:class:`Frame`]]): List of frames to be a part of
382382
the scene. A scene can be created before frames or items have been
383383
added to it, but must be non-empty when uploading to a :class:`Dataset`.
384-
metadata (Optional[Dict]): Optional metadata to include with the scene.
384+
metadata (Optional[Dict]):
385+
Optional metadata to include with the scene.
386+
Coordinate metadata may be provided to enable the Map Chart in the Nucleus Dataset charts page.
387+
These values can be specified as `{"lat": 52.5, "lon": 13.3, ... }`.
385388
386389
Refer to our `guide to uploading 3D data
387390
<https://docs.nucleus.scale.com/docs/uploading-3d-data>`_ for more info!

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ exclude = '''
2121

2222
[tool.poetry]
2323
name = "scale-nucleus"
24-
version = "0.14.18"
24+
version = "0.14.19"
2525
description = "The official Python client library for Nucleus, the Data Platform for AI"
2626
license = "MIT"
2727
authors = ["Scale AI Nucleus Team <nucleusapi@scaleapi.com>"]

0 commit comments

Comments
 (0)