Skip to content

Commit

Permalink
Fix SampleSet __eq__ bug
Browse files Browse the repository at this point in the history
  • Loading branch information
arcondello committed Oct 11, 2018
1 parent 23d71a2 commit 7bb4bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dimod/sampleset.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def __eq__(self, other):
return False

# check that all the fields match in record, order doesn't matter
if self.record.dtype.fields != other.record.dtype.fields:
if self.record.dtype.fields.keys() != other.record.dtype.fields.keys():
return False
for field in self.record.dtype.fields:
if field == 'sample':
Expand Down

0 comments on commit 7bb4bad

Please sign in to comment.