def load(self, filename):
from cPickle import Unpickler
print "reservoirs.py: loading %s" % filename
f = open(filename,'rb')
u = Unpickler(f)
tmp_dict = u.load()
f.close()
self.__dict__.update(tmp_dict)
############################################################
# initialize states randomly
评论列表
文章目录