Skip to content

Commit b23b5f7

Browse files
aihsaniAlvin Ihsani
andauthored
Fix app requirements to working version (#380)
Co-authored-by: Alvin Ihsani <[email protected]>
1 parent 9ec14ee commit b23b5f7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

integrations/nuance_pin/app/inference.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
ScaleIntensityRanged,
3838
Spacingd,
3939
ToDeviced,
40+
ToTensord,
4041
)
4142

4243
sliding_window_inference, _ = optional_import("monai.inferers", name="sliding_window_inference")
@@ -177,6 +178,7 @@ def pre_process(self, img_reader) -> Compose:
177178
keys=[image_key, f"{image_key}_meta_dict"],
178179
names=[orig_image_key, f"{orig_image_key}_meta_dict"],
179180
),
181+
ToTensord(keys=image_key),
180182
ToDeviced(keys=image_key, device=self.device),
181183
EnsureChannelFirstd(keys=image_key),
182184
Spacingd(keys=image_key, pixdim=(0.703125, 0.703125, 1.25)),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
monai-deploy-app-sdk>=0.4.0
1+
monai-deploy-app-sdk==0.4.0
22
monai[all]==0.9.0
33
pydicom==2.3.0
44
highdicom==0.19.0

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ ignore =
4343
E203,E305,E402,E501,E721,E741,F821,F841,F999,W503,W504,C408,E302,W291,E303,
4444
# N812 lowercase 'torch.nn.functional' imported as non lowercase 'F'
4545
N812,
46-
B024 #abstract base class, but it has no abstract methods
46+
B024, #abstract base class, but it has no abstract methods
47+
B027 #method in base class with no implementation
4748
per_file_ignores =
4849
__init__.py: F401
4950
# Allow using camel case for variable/argument names for the sake of readability.

0 commit comments

Comments
 (0)