Skip to content

Commit cdf38d2

Browse files
committed
Merging edits I made from github
2 parents d278ac5 + 98defa8 commit cdf38d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nucleus/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
geometry | dict | Representation of the bounding box in the Box2DGeometry format.\n
5151
metadata | dict | An arbitrary metadata blob for the annotation.\n
5252
"""
53-
__version__ = "0.0.1"
53+
__version__ = "0.1.0"
5454

5555
import json
5656
import logging

nucleus/annotation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
class Annotation:
2828
def _check_ids(self):
29-
if not bool(self.reference_id) and not bool(self.item_id):
29+
if bool(self.reference_id) == bool(self.item_id):
3030
raise Exception(
3131
"You must specify either a reference_id or an item_id for an annotation."
3232
)

0 commit comments

Comments
 (0)