mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-14 06:22:38 +02:00
[pickling] wb as write parameter
This commit is contained in:
parent
80adaed616
commit
22de3ab676
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ class Pickleable(object):
|
||||||
"""
|
"""
|
||||||
import cPickle as pickle
|
import cPickle as pickle
|
||||||
if isinstance(f, str):
|
if isinstance(f, str):
|
||||||
with open(f, 'w') as f:
|
with open(f, 'wb') as f:
|
||||||
pickle.dump(self, f, protocol)
|
pickle.dump(self, f, protocol)
|
||||||
else:
|
else:
|
||||||
pickle.dump(self, f, protocol)
|
pickle.dump(self, f, protocol)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue