[ITK-users] SimpleITK GetGDCMSeriesFileNames() useSeriesDetails not found

Bradley Lowekamp brad at lowekamp.net
Mon Sep 5 18:26:19 EDT 2016


Hello,

There is a SWIG problem with using overloaded functions with keyword arguments. Please try to just use positional argument and not keyword. 

Also note SimpleITK 0.10 has been released. 

HTH
Brad

> On Sep 5, 2016, at 10:00 AM, dominik <dominik.hofer at gmail.com> wrote:
> 
> Hey guys,
> 
> I've been trying to open a multi-series DICOM file in SimpleITK, but when I
> try to execute GetGDCMSeriesFileNames it throws this error:
> 
> GetGDCMSeriesFileNames() got an unexpected keyword argument
> 'useSeriesDetails'
> 
> in the docs it clearly says that this is a parameters for this function.
> 
> My code is as follows:
> 
> reader = sitk.ImageSeriesReader()
> dicom_seriesIDs = reader.GetGDCMSeriesIDs(path_dce)
> dicom_names = reader.GetGDCMSeriesFileNames(path_dce, dicom_seriesIDs[20],
> useSeriesDetails=True)
> 
> The version of SimpleITK is 0.9.1
> 
> When I try to execute the function without useSeriesDetails, it always takes
> the first series from the DICOM file, regardless of the ID.
> 
> Does anyone know this problem or any other way to load multiple-series DICOM
> files?
> 
> Cheers!
> 
> 
> 
> --
> View this message in context: http://itk-insight-users.2283740.n2.nabble.com/SimpleITK-GetGDCMSeriesFileNames-useSeriesDetails-not-found-tp7589159.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users


More information about the Insight-users mailing list