Skip to content

Commit

Permalink
Removed reference to iteritems
Browse files Browse the repository at this point in the history
  • Loading branch information
sgenie68 authored Sep 19, 2019
1 parent ac0c7ce commit bd94ec3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/python/prolate_spheroid_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bd94ec3

Please sign in to comment.