You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When calling the property bounding_box of the WSIAnnotation class return an the following attribute error AttributeError: 'Point' object has no attribute 'exterior'
Traceback (most recent call last):
File "/homes/dwessels/LightningGon/test_multipoint.py", line 41, in <module>
bounds = dlup_anno.bounding_box
File "/homes/dwessels/.cache/pypoetry/virtualenvs/lgon-WMDuiRwL-py3.10/lib/python3.10/site-packages/dlup/annotations.py", line 321, in bounding_box
curr_bboxes = self[label].bounding_boxes
File "/homes/dwessels/.cache/pypoetry/virtualenvs/lgon-WMDuiRwL-py3.10/lib/python3.10/site-packages/dlup/annotations.py", line 227, in bounding_boxes
data = [np.asarray(annotation.envelope.exterior.coords) for annotation in self.as_list()]
File "/homes/dwessels/.cache/pypoetry/virtualenvs/lgon-WMDuiRwL-py3.10/lib/python3.10/site-packages/dlup/annotations.py", line 227, in <listcomp>
data = [np.asarray(annotation.envelope.exterior.coords) for annotation in self.as_list()]
AttributeError: 'Point' object has no attribute 'exterior'
Expected behavior
Give back then bounds of the point annotations, something like the following:
points = dlup_anno._annotations["Lymphocytes"].as_list()
bounds = [point.bounds[:2] for point in points]
Environment
dlup version: 0.3.23
How installed: via Git on branch #148
Python version: 3.10.8
Operating System: Linux
The text was updated successfully, but these errors were encountered:
Describe the bug
When calling the property bounding_box of the WSIAnnotation class return an the following attribute error
AttributeError: 'Point' object has no attribute 'exterior'
To Reproduce
Gives the following error:
Expected behavior
Give back then bounds of the point annotations, something like the following:
Environment
dlup version: 0.3.23
How installed: via Git on branch #148
Python version: 3.10.8
Operating System: Linux
The text was updated successfully, but these errors were encountered: