- Use spawn in stead of fork so that any jvm will not exist in any child processes and block them from stopping.
- Use poetry for install.
This commit is contained in:
11
tests/test_single.py
Normal file
11
tests/test_single.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import numpy as np
|
||||
from tiffwrite import IJTiffFile
|
||||
from itertools import product
|
||||
|
||||
|
||||
def test_single(tmp_path):
|
||||
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)):
|
||||
tif.save(np.random.randint(0, 255, (64, 64)), c, z, t)
|
||||
assert path.exists()
|
||||
Reference in New Issue
Block a user