mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-24 20:36:23 +02:00
[caching] different error
This commit is contained in:
parent
a4ce1d473c
commit
f7087ebc90
1 changed files with 4 additions and 2 deletions
|
|
@ -149,10 +149,12 @@ class Cacher(object):
|
|||
return Cacher(self.operation, self.limit, self.ignore_args, self.force_kwargs)
|
||||
|
||||
def __getstate__(self, memo=None):
|
||||
raise NotImplementedError("Trying to pickle Cacher object with function {}, pickling functions not possible.".format(str(self.operation)))
|
||||
from pickle import PicklingError
|
||||
raise PicklingError("Trying to pickle Cacher object with function {}, pickling functions not possible.".format(str(self.operation)))
|
||||
|
||||
def __setstate__(self, memo=None):
|
||||
raise NotImplementedError("Trying to pickle Cacher object with function {}, pickling functions not possible.".format(str(self.operation)))
|
||||
from pickle import PicklingError
|
||||
raise PicklingError("Trying to pickle Cacher object with function {}, pickling functions not possible.".format(str(self.operation)))
|
||||
|
||||
@property
|
||||
def __name__(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue