Skip to content

Fix app requirements to working version #380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions integrations/nuance_pin/app/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
ScaleIntensityRanged,
Spacingd,
ToDeviced,
ToTensord,
)

sliding_window_inference, _ = optional_import("monai.inferers", name="sliding_window_inference")
Expand Down Expand Up @@ -177,6 +178,7 @@ def pre_process(self, img_reader) -> Compose:
keys=[image_key, f"{image_key}_meta_dict"],
names=[orig_image_key, f"{orig_image_key}_meta_dict"],
),
ToTensord(keys=image_key),
ToDeviced(keys=image_key, device=self.device),
EnsureChannelFirstd(keys=image_key),
Spacingd(keys=image_key, pixdim=(0.703125, 0.703125, 1.25)),
Expand Down
2 changes: 1 addition & 1 deletion integrations/nuance_pin/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
monai-deploy-app-sdk>=0.4.0
monai-deploy-app-sdk==0.4.0
monai[all]==0.9.0
pydicom==2.3.0
highdicom==0.19.0
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ ignore =
E203,E305,E402,E501,E721,E741,F821,F841,F999,W503,W504,C408,E302,W291,E303,
# N812 lowercase 'torch.nn.functional' imported as non lowercase 'F'
N812,
B024 #abstract base class, but it has no abstract methods
B024, #abstract base class, but it has no abstract methods
B027 #method in base class with no implementation
per_file_ignores =
__init__.py: F401
# Allow using camel case for variable/argument names for the sake of readability.
Expand Down