View Issue Details

IDProjectCategoryView StatusLast Update
0004533Slicer4Module SimpleFilterspublic2018-05-30 01:10
ReporterEricWilson Assigned Toblowekamp  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformPCOSWindowsOS Version1709
Product VersionSlicer 4.8.1 
Target VersionFixed in VersionSlicer 4.9.0 
Summary0004533: Incorrect(?) future warning message for simple ITK
Description

when entering the code for using a sitk filter as seen in the script repository, the function for sitkUtils.PullFromSlicer() will output this error:

FutureWarning: 'PullFromSlicer' method is deprecated and will be removed in the future. Use PullFromSlicer method instead.

both names are the same, so either the message is incorrect and the PullFromSlicer method is up to date, or it is incorrect and the PullFromSlicer method should be replaced with the new function. either way it should be addressed.

Steps To Reproduce

attempt to use the code found here: https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Running_an_ITK_filter_in_Python_using_SimpleITK

import SimpleITK as sitk
import sitkUtils
inputImage = sitkUtils.PullFromSlicer('MRHead') # warning on this line
filter = sitk.SignedMaurerDistanceMapImageFilter()
outputImage = filter.Execute(inputImage)
sitkUtils.PushToSlicer(outputImage,'outputImage')

Tagsitk

Activities

lassoan

lassoan

2018-05-30 01:10

developer   ~0015824

Error message fixed (PullVolumeFromSlicer method should be used).

Issue History

Date Modified Username Field Change
2018-04-02 13:20 EricWilson New Issue
2018-04-02 13:20 EricWilson Status new => assigned
2018-04-02 13:20 EricWilson Assigned To => blowekamp
2018-04-02 13:20 EricWilson Tag Attached: itk
2018-05-30 01:10 lassoan Status assigned => resolved
2018-05-30 01:10 lassoan Resolution open => fixed
2018-05-30 01:10 lassoan Fixed in Version => Slicer 4.9.0
2018-05-30 01:10 lassoan Note Added: 0015824