diff --git a/.readthedocs.yml b/.readthedocs.yml index 1d254d0..fe2cccb 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,8 +1,11 @@ version: 2 +build: + os: ubuntu-22.04 + tools: + python: "3.8" sphinx: configuration: docs/source/conf.py python: - version: "3.8" install: - method: pip path: . diff --git a/paquo/_utils.py b/paquo/_utils.py index 638620f..ad7e319 100644 --- a/paquo/_utils.py +++ b/paquo/_utils.py @@ -136,6 +136,13 @@ def download_qupath( else: _sys = "Mac-x64" name = f"QuPath-{version}-{_sys}" + elif Version(version) > Version("0.3.2"): + if system == "Darwin": + if platform.machine() == "arm64": + _sys = "Mac-arm64" + else: + _sys = "Mac" + name = f"QuPath-{version[1:]}-{_sys}" else: if "rc" not in version: name = f"QuPath-{version[1:]}-{_sys}" diff --git a/paquo/pathobjects.py b/paquo/pathobjects.py index f724ea2..37a380b 100644 --- a/paquo/pathobjects.py +++ b/paquo/pathobjects.py @@ -226,7 +226,7 @@ def update_path_class(self: PathROIObjectType, pc: Optional[QuPathPathClass], pr pc = pc if pc is None else pc.java_object self.java_object.setPathClass(pc, probability) if self._update_callback: - self._update_callback(self) + self._update_callback(self) # type: ignore[arg-type] @property def locked(self) -> bool: @@ -237,7 +237,7 @@ def locked(self) -> bool: def locked(self: PathROIObjectType, value: bool) -> None: self.java_object.setLocked(value) if self._update_callback: - self._update_callback(self) + self._update_callback(self) # type: ignore[arg-type] @property def is_editable(self) -> bool: @@ -263,7 +263,7 @@ def name(self: PathROIObjectType, name: Union[str, None]) -> None: name = String(name) self.java_object.setName(name) if self._update_callback: - self._update_callback(self) + self._update_callback(self) # type: ignore[arg-type] @property def parent(self: PathROIObjectType) -> Optional[PathROIObjectType]: @@ -285,7 +285,7 @@ def update_roi(self: PathROIObjectType, geometry: BaseGeometry) -> None: roi = _shapely_geometry_to_qupath_roi(geometry) self.java_object.setROI(roi) if self._update_callback: - self._update_callback(self) + self._update_callback(self) # type: ignore[arg-type] @cached_property def measurements(self):