From bcb5c6526654be9632afd9e30034600181ef46fa Mon Sep 17 00:00:00 2001 From: ncullen93 Date: Wed, 19 Jul 2017 23:15:30 -0400 Subject: [PATCH 1/2] items bug fix --- Wrapping/Generators/Python/itkExtras.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wrapping/Generators/Python/itkExtras.py b/Wrapping/Generators/Python/itkExtras.py index a29b19596dc..aaba6495c71 100644 --- a/Wrapping/Generators/Python/itkExtras.py +++ b/Wrapping/Generators/Python/itkExtras.py @@ -650,7 +650,7 @@ def __init__(self, imageOrFilter, Label=False, Title=None): ref = imageOrFilter if s: ref = s - for n, v in ip.user_ns.iteritems(): + for n, v in ip.user_ns.items(): if isinstance(v, itk.LightObject) and v == ref: names.append(n) if names != []: From d8b0ae621ed537156cd517195e676e437040bcc4 Mon Sep 17 00:00:00 2001 From: ncullen93 Date: Fri, 21 Jul 2017 14:28:34 -0400 Subject: [PATCH 2/2] bug in itk.GetVnlMatrixFromArray --- Wrapping/Generators/Python/itkExtras.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wrapping/Generators/Python/itkExtras.py b/Wrapping/Generators/Python/itkExtras.py index aaba6495c71..2031c6b9d3c 100644 --- a/Wrapping/Generators/Python/itkExtras.py +++ b/Wrapping/Generators/Python/itkExtras.py @@ -325,7 +325,7 @@ def _GetVnlObjectFromArray(arr, function): import itk PixelType = _get_itk_pixelid(arr) templatedFunction = getattr(itk.PyVnl[PixelType], function) - return templatedFunction(vnlObject) + return templatedFunction(arr) def GetVnlVectorFromArray(arr): """Get a vnl vector from a Python array.