Hi,
I'm getting a problem with pickle that I've not seen before.
I have an extracted_region that I'm trying to pickle via:
file = open(('cloud%d_pyfindclouds2.pickle' % p), 'wb') cPickle.dump(cloud, file, protocol=-1) file.close()
but I'm getting:
In [16]: cPickle.dump(cloud, file, protocol=-1) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /Users/Elizabeth/yt/src/yt-hg/scripts/iyt in <module>() ----> 1 cPickle.dump(cloud, file, protocol=-1)
/Users/Elizabeth/yt/src/yt-hg/yt/data_objects/data_containers.pyc in __reduce__(self) 403 def __reduce__(self): 404 args = tuple([self.pf._hash(), self._type_name] + --> 405 [getattr(self, n) for n in self._con_args] + 406 [self.field_parameters]) 407 return (_reconstruct_object, args)
AttributeError: 'AMRBooleanRegion' object has no attribute 'r'
Does anyone know what might be causing this?
Elizabeth