Skip to content

Commit 012c2dd

Browse files
committed
update dicom transfer method by sending only the first slice due to overhead
Signed-off-by: Jose Raniery <[email protected]>
1 parent 01e0a8f commit 012c2dd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugins/slicer/MONAILabel/MONAILabel.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,6 +1437,11 @@ def onUploadImage(self, init_sample=True, session=False):
14371437
# if includeDicomFilesCheckBox is marked, save original dicom files on the client
14381438
if slicer.util.settingsValue("MONAILabel/includeDicomFiles", False, converter=slicer.util.toBool):
14391439
dcm_filenames = self.get_dicom_files()
1440+
1441+
# send to server only the first slice due to transfer overhead
1442+
dcm_filenames.sort()
1443+
dcm_filenames = dcm_filenames[:1]
1444+
14401445
report_progress_increment = round(last_report_progress / len(dcm_filenames), 1)
14411446
for dcm_fullpath in dcm_filenames:
14421447
# set original study and series UIDs

0 commit comments

Comments
 (0)