Skip to content

Commit

Permalink
added __eq__ function but facing recursion depth exceded error
Browse files Browse the repository at this point in the history
  • Loading branch information
mayya-bondarevskaya committed Jul 4, 2017
1 parent 0a53c63 commit b6f9c09
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyqn/qn_array_two.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,8 @@ def __pow__(self, other):
sd_arr.append(temp_q.sd)
return qnArrayTwo(v, units = temp_q.units, sd = sd_arr)

#def __eq__(self, other):
# if all(self == other) and (self.units == other.units) and (self.sd == other.sd):
# return True
# else:
# return False

0 comments on commit b6f9c09

Please sign in to comment.