Skip to content

Commit

Permalink
Hash NodeTransmissionParameters by ID
Browse files Browse the repository at this point in the history
Fix for Python 3
  • Loading branch information
mundya committed Sep 29, 2015
1 parent 38e07e5 commit fd8dbee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nengo_spinnaker/builder/node.py
Expand Up @@ -325,6 +325,10 @@ def __init__(self, pre_slice, function, transform):
self.pre_slice = pre_slice
self.function = function

def __hash__(self):
# Hash by ID
return hash(id(self))

def __eq__(self, other):
# Parent equivalence
if not super(NodeTransmissionParameters, self).__eq__(other):
Expand Down

0 comments on commit fd8dbee

Please sign in to comment.