View Issue Details

IDProjectCategoryView StatusLast Update
0004175Slicer4Core: Scripting (Wrapping, Python)public2016-04-21 09:06
ReporterdscorzaAssigned Tojcfr 
Status assignedResolutionopen 
PlatformWindows 7OSOS Version
Product VersionSlicer 4.5.0-1 
Target VersionFixed in Version 
Summary0004175: sitkUtils PushToSlicer does not keep references when overwrite = true

If I process a volumeNode with simpleITK (passing it through sitkUtils.PullFromSlicer), when I use simpleITK.PushToSlicer with the overwrite flag = True, I loose all the references to other nodes.
As Andras Lasso explained, this is due to the fact that the overwrite option in sitk doesn’t actually overwrite the existing volume but deletes the existing volume and creates a new one.

Steps To Reproduce
  • take a volume
  • create a markup list
  • reference the markup list to the volume with volumeNode.SetNodeReferenceID('markupList', markupListID)
  • sitkImage = sitkUtils.pullFromSlicer(volumeNodeName)
  • sitkUtils.PushToSlicer(sitkImage, volumeNodeName, overwrite=True)
  • volumeNode.GetNodeReference('markupList') will be empty.
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2016-04-21 09:06 dscorza New Issue
2016-04-21 09:06 dscorza Status new => assigned
2016-04-21 09:06 dscorza Assigned To => jcfr