- Tiffwrite is now fully typed.
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
from contextlib import ExitStack
|
||||
from itertools import product
|
||||
from pathlib import Path
|
||||
|
||||
import numpy as np
|
||||
from tiffwrite import IJTiffFile
|
||||
from tqdm.auto import tqdm
|
||||
|
||||
from tiffwrite import IJTiffFile
|
||||
|
||||
def test_mult(tmp_path):
|
||||
|
||||
def test_mult(tmp_path: Path) -> None:
|
||||
shape = (2, 3, 5)
|
||||
paths = [tmp_path / f'test{i}.tif' for i in range(6)]
|
||||
with ExitStack() as stack:
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
from itertools import product
|
||||
from pathlib import Path
|
||||
|
||||
import numpy as np
|
||||
|
||||
from tiffwrite import IJTiffFile
|
||||
|
||||
|
||||
def test_single(tmp_path):
|
||||
def test_single(tmp_path: Path) -> None:
|
||||
path = tmp_path / 'test.tif'
|
||||
with IJTiffFile(path, (3, 4, 5)) as tif:
|
||||
for c, z, t in product(range(3), range(4), range(5)):
|
||||
|
||||
Reference in New Issue
Block a user