Skip to content

Commit 44e99d1

Browse files
authored
Merge branch 'develop' into sam-viz-fix
2 parents 4fb94a8 + 5f4b454 commit 44e99d1

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

AUTHORS.md

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

33
## Development Lead
44

5-
- TIA Centre led by Nasir Rajpoot <tia@dcs.warwick.ac.uk>
5+
- TIA Centre led by Nasir Rajpoot <TIA@warwick.ac.uk>
66
- Shan E Ahmed Raza \<@shaneahmed>
77
- John Pocock \<@John-P>
88
- Mark Eastwood \<@measty>

HISTORY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ ______________________________________________________________________
8080

8181
- Adds the bokeh visualization tool. #684
8282
- The tool allows a user to launch a server on their machine to visualise whole slide images, overlay the results of deep learning algorithms or to select a patch from whole slide image and run TIAToolbox deep learning engines.
83-
- This tool powers the TIA demos server. For details please see https://tiademos.dcs.warwick.ac.uk/.
83+
- This tool powers the TIA demos server. For details please see [https://warwick.ac.uk/tia/demos](https://warwick.ac.uk/tia/demos).
8484
- Extends Annotation to Support Init from WKB #639
8585
- Adds `IOConfig` for NuClick in `pretrained_model.yaml` #709
8686
- Adds functions to save the TIAToolbox Engine outputs to Zarr and AnnotationStore files. #724

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ TIAToolbox is a computational pathology toolbox developed by the TIA Centre. It
4949

5050
### All Users
5151

52-
This package is designed for those interested in digital pathology, including graduate students, medical staff, members of the TIA Centre and PathLAKE, and anyone who may find it useful. We will continue to improve this package, taking into account developments in pathology, microscopy, computing, and related disciplines. Please send comments and feedback to **[tia@dcs.warwick.ac.uk](mailto:tialab@dcs.warwick.ac.uk)**.
52+
This package is designed for those interested in digital pathology, including graduate students, medical staff, members of the TIA Centre and PathLAKE, and anyone who may find it useful. We will continue to improve this package, taking into account developments in pathology, microscopy, computing, and related disciplines. Please send comments and feedback to **[TIA@warwick.ac.uk](mailto:TIA@warwick.ac.uk)**.
5353

5454
### Developers
5555

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
name = "TIA Centre"
2828
version = "1.6.0"
2929
description = "test"
30-
authors = ["TIA Centre <tialab@dcs.warwick.ac.uk>"]
30+
authors = ["TIA Centre <TIA@warwick.ac.uk>"]
3131

3232
[tool.poetry_bumpversion.file."tiatoolbox/__init__.py"]
3333
search = '__version__ = "{current_version}"'

setup.py

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

3434
setup(
3535
author="TIA Centre",
36-
author_email="tia@dcs.warwick.ac.uk",
36+
author_email="TIA@warwick.ac.uk",
3737
python_requires=">=3.10, <3.14",
3838
classifiers=[
3939
"Development Status :: 2 - Pre-Alpha",

tiatoolbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from types import ModuleType
1616

1717
__author__ = """TIA Centre"""
18-
__email__ = "tialab@dcs.warwick.ac.uk"
18+
__email__ = "TIA@warwick.ac.uk"
1919
__version__ = "1.6.0"
2020

2121
# This will set the tiatoolbox external data

tiatoolbox/utils/transforms.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def imresize(
9595
img: np.ndarray,
9696
scale_factor: float | tuple[float, float] | None = None,
9797
output_size: int | tuple[int, int] | None = None,
98-
interpolation: str = "optimise",
98+
interpolation: str | int = "optimise",
9999
) -> np.ndarray:
100100
"""Resize input image.
101101
@@ -153,7 +153,7 @@ def imresize(
153153
# can work on out-of-the-box (anything else will cause
154154
# error). The `converted type` has been selected so that
155155
# they can maintain the numeric precision of the `original type`.
156-
dtype_mapping = [
156+
dtype_mapping: list[tuple[type, type]] = [
157157
(np.bool_, np.uint8),
158158
(np.int8, np.int16),
159159
(np.int16, np.int16),
@@ -167,7 +167,7 @@ def imresize(
167167
(np.float32, np.float32),
168168
(np.float64, np.float64),
169169
]
170-
source_dtypes = [v[0] for v in dtype_mapping]
170+
source_dtypes = [np.dtype(v[0]) for v in dtype_mapping]
171171
original_dtype = img.dtype
172172
if original_dtype not in source_dtypes:
173173
msg = f"Does not support resizing for array of dtype: {original_dtype}"
@@ -415,6 +415,6 @@ def pad_bounds(
415415
elif np.size(padding) == ndims: # pragma: no cover
416416
padding = np.tile(padding, 2)
417417

418-
signs = np.repeat([-1, 1], ndims)
418+
signs: np.ndarray = np.repeat([-1, 1], ndims)
419419
result = np.add(bounds, padding * signs)
420420
return (result[0], result[1], result[2], result[3])

0 commit comments

Comments
 (0)