From bd94ec3e89c689b0c78a5831c483e50aabc3b96b Mon Sep 17 00:00:00 2001 From: sgenie68 Date: Fri, 20 Sep 2019 11:34:56 +1200 Subject: [PATCH] Removed reference to iteritems --- src/python/prolate_spheroid_geometry.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/python/prolate_spheroid_geometry.py b/src/python/prolate_spheroid_geometry.py index 6430533..06a9e98 100644 --- a/src/python/prolate_spheroid_geometry.py +++ b/src/python/prolate_spheroid_geometry.py @@ -90,13 +90,13 @@ def nodeGroup(self, group): else: elFactor = 1 if group == 'base': - return [n for p, n in self.positionNode.iteritems() + return [n for p, n in self.positionNode.items() if p[1] == self.numElements[1] * elFactor] elif group in ('internal', 'endocardium'): - return [n for p, n in self.positionNode.iteritems() + return [n for p, n in self.positionNode.items() if p[2] == 0] elif group in ('external', 'epicardium'): - return [n for p, n in self.positionNode.iteritems() + return [n for p, n in self.positionNode.items() if p[2] == self.numElements[2] * elFactor] else: raise ValueError("Invalid node group: %s" % group)