t2d2-sdk 2.2.0__tar.gz → 2.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: t2d2-sdk
3
- Version: 2.2.0
3
+ Version: 2.2.1
4
4
  Summary: T2D2 SDK
5
5
  Author-email: Badri Hiriyur <badri@t2d2.ai>
6
6
  Project-URL: Homepage, https://t2d2.ai
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '2.2.0'
16
- __version_tuple__ = version_tuple = (2, 2, 0)
15
+ __version__ = version = '2.2.1'
16
+ __version_tuple__ = version_tuple = (2, 2, 1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: t2d2-sdk
3
- Version: 2.2.0
3
+ Version: 2.2.1
4
4
  Summary: T2D2 SDK
5
5
  Author-email: Badri Hiriyur <badri@t2d2.ai>
6
6
  Project-URL: Homepage, https://t2d2.ai
@@ -1713,7 +1713,11 @@ class T2D2(object):
1713
1713
  sublist = {}
1714
1714
  for ann in annotations:
1715
1715
  label = ann["annotation_class"]["annotation_class_name"]
1716
- rating = ann.get("condition", {}).get("rating_name", "default")
1716
+ condition = ann.get("condition", {})
1717
+ if isinstance(condition, dict):
1718
+ rating = condition.get("rating_name", "default")
1719
+ else:
1720
+ rating = "default"
1717
1721
  area = ann["area"]
1718
1722
  length = ann["length"]
1719
1723
  ann_id = ann["id"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes