Skip to content

Commit 1c401ce

Browse files
committed
fix: update hash method to use bytes representation for values
1 parent 8cd2181 commit 1c401ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hepstats/hypotests/parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def __eq__(self, other):
8484
return values_equal.all() and name_equal
8585

8686
def __hash__(self):
87-
return hash((self.name, self.values.tostring()))
87+
return hash((self.name, self.values.data.tobytes()))
8888

8989
@property
9090
def ndim(self):

0 commit comments

Comments
 (0)