Skip to content

Commit

Permalink
update dicom transfer method by sending only the first slice due to o…
Browse files Browse the repository at this point in the history
…verhead

Signed-off-by: Jose Raniery <[email protected]>
  • Loading branch information
jose-rfj committed Jul 8, 2024
1 parent 01e0a8f commit 012c2dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/slicer/MONAILabel/MONAILabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,11 @@ def onUploadImage(self, init_sample=True, session=False):
# if includeDicomFilesCheckBox is marked, save original dicom files on the client
if slicer.util.settingsValue("MONAILabel/includeDicomFiles", False, converter=slicer.util.toBool):
dcm_filenames = self.get_dicom_files()

# send to server only the first slice due to transfer overhead
dcm_filenames.sort()
dcm_filenames = dcm_filenames[:1]

report_progress_increment = round(last_report_progress / len(dcm_filenames), 1)
for dcm_fullpath in dcm_filenames:
# set original study and series UIDs
Expand Down

0 comments on commit 012c2dd

Please sign in to comment.