|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | 5 | from collections import defaultdict |
6 | | -from datetime import datetime, UTC |
| 6 | +from datetime import UTC, datetime |
7 | 7 | from numbers import Number |
8 | 8 | from pathlib import Path |
9 | 9 | from typing import TYPE_CHECKING |
10 | 10 |
|
| 11 | +import matplotlib.colors as mcolors |
11 | 12 | import numpy as np |
12 | 13 | import tifffile |
13 | 14 | import zarr |
14 | 15 | from defusedxml import ElementTree |
15 | 16 | from tifffile import TiffPages |
16 | | -from zarr.storage import MemoryStore |
17 | 17 | from zarr.experimental.cache_store import CacheStore |
| 18 | +from zarr.storage import MemoryStore |
18 | 19 |
|
19 | 20 | from tiatoolbox import logger, utils |
| 21 | +from tiatoolbox.utils import postproc_defs |
20 | 22 | from tiatoolbox.utils.exceptions import FileNotSupportedError |
21 | 23 | from tiatoolbox.wsicore.wsimeta import WSIMeta |
22 | | -import matplotlib.colors as mcolors |
23 | 24 |
|
24 | | -from .base import WSIReader, ArrayView |
25 | | -from tiatoolbox.utils import postproc_defs |
| 25 | +from .base import ArrayView, WSIReader |
26 | 26 |
|
27 | 27 | if TYPE_CHECKING: # pragma: no cover |
28 | | - from tiatoolbox.type_hints import IntPair, Resolution, Units, IntBounds |
| 28 | + from tiatoolbox.type_hints import IntBounds, IntPair, Resolution, Units |
29 | 29 |
|
30 | 30 |
|
31 | 31 | class TIFFWSIReader(WSIReader): |
|
0 commit comments