ITKElastix icon indicating copy to clipboard operation
ITKElastix copied to clipboard

enumeration support for the wrapping of ParameterObject

Open romangrothausmann opened this issue 4 years ago • 1 comments

It would be helpful to have a way of enumerating a list/dict of a ParameterObject like for i, parameterMap in enumerate(parameterObject):. Currently, this needs to be done as:

    for i in range(parameterObject.GetNumberOfParameterMaps()):
       parameterMap = parameterObject.GetParameterMap(i)

romangrothausmann avatar Feb 10 '20 15:02 romangrothausmann