Skip to content

Commit

Permalink
remove __reduce__ from MinHash class (#1144)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Aug 4, 2020
1 parent 1f27f4f commit cace054
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions sourmash/_minhash.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,24 +202,6 @@ def __setstate__(self, tup):
else:
self.add_many(mins)

def __reduce__(self):
"alternative pickling protocol."
return (
MinHash,
(
self.num,
self.ksize,
self.is_protein,
self.dayhoff,
self.hp,
self.track_abundance,
self.seed,
self.max_hash,
self.get_mins(with_abundance=self.track_abundance),
0,
),
)

def __eq__(self, other):
"equality testing via =="
return self.__getstate__() == other.__getstate__()
Expand Down

0 comments on commit cace054

Please sign in to comment.