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)
but I'm getting:
In : 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] +
407 return (_reconstruct_object, args)
AttributeError: 'AMRBooleanRegion' object has no attribute 'r'
Does anyone know what might be causing this?
We’re proud to announce the release of version 2.5 of the yt Project, http://yt-project.org/. The new version includes many new features, refinements of existing features and numerous bugfixes. We encourage all users to upgrade to take advantage of the changes.
yt is a community-developed analysis and visualization toolkit, primarily directed at astrophysical hydrodynamics simulations. It provides full support for output from the Enzo, FLASH, Orion, and Nyx codes, with preliminary support for several others. It provides access to simulation data using an intuitive python interface, can perform many common visualization tasks, and offers a framework for conducting data reductions and analysis of simulation data.
The most visible changes with the 2.5 release include:
* Testing has been greatly expanded, including unit tests and answer testing.
* The capabilities of the “Stream” frontend have been expanded. Uniform grid and AMR-based data can be read into memory, and particle fields can be initialized.
* The install script now provides for the optional installation of SciPy and the Rockstar halo finder.
* Surfaces can now be extracted and examined, as well as uploaded to Sketchfab.com for interactive visualization in a web browser.
* Support for the Athena code has been added.
* Many, many improvements to PlotWindow.
* Coordinate transformations have been sped up and streamlined, as well as cylindrical and spherical fields.
* Increased support for the IPython notebook.
* Improved support for FLASH particle fields.
* The volume rendering backend has been updated to use an alpha channel, fixing parallel opaque volume renderings.
* The AMRKDTree has been rewritten, allowing parallelism with other than power-of-2 MPI processes, arbitrary sets of grids, and splitting of unigrids.
For a complete list of changes in this release, please visit the Changelog (http://yt-project.org/docs/2.5/changelog.html).
Information about the yt project, including installation instructions, can be found on the homepage: http://yt-project.org/
Development of yt has been sponsored by the NSF, the DOE, and various universities. We develop yt in the open and encourage contributions from users who extend and improve the code. We invite you to get involved with developing and using yt!
Please forward this announcement to other interested parties.
The yt development team
I want to test if a data set at particles. I thought:
would work, but oddly it doesn't since:
In : pf.has_key("particle_type")
In : dd = pf.h.all_data()
In : dd["particle_type"]
yt : [INFO ] 2013-02-23 17:00:43,826 Getting particle_type using ParticleIO
Out: array([11, 11, 11, ..., 11, 11, 11])
Shouldn't pf.has_key("particle_type") be true in this case?