Skip to content

Commit

Permalink
Extend dunder methods and code simplification for annotations (#251)
Browse files Browse the repository at this point in the history
* Add z_index to geojson properties when importing and exporting
* Fix annotation crop for Polygons in read_region and test_annotations
* Created new AnnotatedGeometry, adhere to shapely dunder and functions
* Add helper function to utils and Enum for Darwin/ASAP annotation types
* Add darwin_annotation_type to color look up and move Darwin util function to utils
* Bugfix for WsiAnnotations.filter function
  • Loading branch information
BPdeRooij authored and jonasteuwen committed Aug 14, 2024
1 parent 999fa95 commit 8fabfce
Show file tree
Hide file tree
Showing 12 changed files with 546 additions and 441 deletions.
2 changes: 1 addition & 1 deletion dlup/_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

from dlup._exceptions import UnsupportedSlideError
from dlup._region import BoundaryMode, RegionView
from dlup.backends.common import AbstractSlideBackend
from dlup._types import GenericFloatArray, GenericIntArray, GenericNumber, GenericNumberArray, PathLike
from dlup.backends.common import AbstractSlideBackend
from dlup.utils.backends import ImageBackend
from dlup.utils.image import check_if_mpp_is_valid

Expand Down
Loading

0 comments on commit 8fabfce

Please sign in to comment.