dib-lab / khmer

In-memory nucleotide sequence k-mer counting, filtering, graph traversal and more
http://khmer.readthedocs.io/
Other
757 stars 295 forks source link

Can Countgraph/Nodegraphs be pickled? #1348

Open ctb opened 8 years ago

ctb commented 8 years ago

Running into some issues that seem like they cannot --

  File "/Users/t/dev/jup/bin/../lib/python2.7/copy_reg.py", line 71, in _reduce_ex  
    state = base(self)
TypeError: function takes exactly 2 arguments (1 given)
luizirber commented 8 years ago

They can, but we need to implement __reduce__ for our C++ classes: https://docs.python.org/3/library/pickle.html#object.__reduce__

On Sun, Apr 3, 2016 at 6:24 AM, C. Titus Brown notifications@github.com wrote:

Running into some issues that seem like they cannot --

File "/Users/t/dev/jup/bin/../lib/python2.7/copy_reg.py", line 71, in _reduce_ex state = base(self) TypeError: function takes exactly 2 arguments (1 given)

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/dib-lab/khmer/issues/1348