Skip to content

Commit de63767

Browse files
committed
Prospective test fixes
1 parent 649c5f5 commit de63767

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
run: |
5252
python -m pip install --upgrade pip
5353
python -m pip install setuptools tox tox-gh-actions
54+
python -m pip install monai[nibabel,einops, tifffile]
5455
# pip install git+https://github.com/lucasb-eyer/pydensecrf.git@master#egg=pydensecrf
5556

5657
# this runs the platform-specific tests declared in tox.ini

napari_cellseg3d/code_models/models/model_SwinUNetR.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545
except TypeError as e:
4646
logger.warning(f"Caught TypeError: {e}")
4747
super().__init__(
48-
# img_size=input_img_size,
48+
img_size=input_img_size, # hack for compatibility, latest MONAI for py3.9 does not have img_size but py3.8 does
4949
in_channels=1,
5050
out_channels=1,
5151
feature_size=48,

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ deps =
4040
git+https://github.com/lucasb-eyer/pydensecrf.git@master#egg=pydensecrf
4141
onnx
4242
onnxruntime
43+
monai[tifffile]
4344
; pyopencl[pocl]
4445
; opencv-python
4546
extras = crf

0 commit comments

Comments
 (0)