ITKElastix icon indicating copy to clipboard operation
ITKElastix copied to clipboard

"HasKey" or similar method for the wrapped ParameterObject

Open romangrothausmann opened this issue 5 years ago • 1 comments

For pythonic way of checking if a key is in a list/dict like if 'InitialTransformParametersFileName' in parameterObject: it would be helpful to have a "HasKey" or similar method for the wrapped ParameterObject.

romangrothausmann avatar Feb 10 '20 14:02 romangrothausmann

We can do this by defining __contains__.

thewtex avatar Nov 18 '20 16:11 thewtex