Skip to content

Commit

Permalink
Merge pull request #248 from pyplati/nnunet-service-fix-label-save
Browse files Browse the repository at this point in the history
Save the label mask in the loop
  • Loading branch information
pchlap authored Dec 15, 2023
2 parents ba9bc08 + 2890943 commit b4e6eeb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions services/nnunet/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ def nnunet_service(data_objects, working_dir, settings):

sitk.WriteImage(mask, str(mask_file))

output_data_object = DataObject(
type="FILE", path=str(mask_file), parent=data_object
)
output_objects.append(output_data_object)
output_data_object = DataObject(
type="FILE", path=str(mask_file), parent=data_object
)
output_objects.append(output_data_object)

os.remove(io_path)

Expand Down

0 comments on commit b4e6eeb

Please sign in to comment.