File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ 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.10.4] ( https://github.com/scaleapi/nucleus-python-client/releases/tag/v0.10.1 ) ) - 2022-04-22
9
+ - Additional check added for KeypointsAnnotation names validation
10
+
8
11
## [ 0.10.3] ( https://github.com/scaleapi/nucleus-python-client/releases/tag/v0.10.3 ) - 2022-04-22
9
12
10
13
### Fixed
Original file line number Diff line number Diff line change @@ -464,6 +464,15 @@ def __post_init__(self):
464
464
raise ValueError (
465
465
"The list of keypoints must be the same length as the list of names"
466
466
)
467
+ if len (set (self .names )) != len (self .names ):
468
+ seen = set ()
469
+ for name in self .names :
470
+ if name in seen :
471
+ raise ValueError (
472
+ f"The keypoint name '{ name } ' is repeated in the list of names"
473
+ )
474
+ seen .add (name )
475
+
467
476
for segment in self .skeleton :
468
477
if len (segment ) != 2 :
469
478
raise ValueError (
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.10.3 "
24
+ version = " 0.10.4 "
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