Merge branch 'devel' of github.com:SheffieldML/GPy into devel

This commit is contained in:
Zhenwen Dai 2014-08-26 16:38:04 +01:00
commit 0947112f3c
9 changed files with 333 additions and 125 deletions

View file

@ -191,7 +191,7 @@ class Pickleable(object):
"""
import cPickle as pickle
if isinstance(f, str):
with open(f, 'w') as f:
with open(f, 'wb') as f:
pickle.dump(self, f, protocol)
else:
pickle.dump(self, f, protocol)