[yt-users] Active Particles

John Regan johnanthonyregan at gmail.com
Thu Jul 24 05:38:33 PDT 2014


Hi All,

I'm having trouble reading Active Particle data from Enzo-3.0 outputs.

.
.
.
dd = pf.h.all_data()
print dd["RadiationParticle", "particle_position_x"]
.
.

gives

 File "PrintActiveParticleInfo.py", line 18, in <module>
    print dd["RadiationParticle", "particle_position_x"]
  File
"/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py",
line 325, in __getitem__
    self.get_data(key)
  File
"/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py",
line 2627, in get_data
    if self._generate_field(field):
  File
"/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py",
line 358, in _generate_field
    raise KeyError(field)
KeyError: ('RadiationParticle', 'particle_position_x')

>From dumping the hdf5 file the dataset (particle_position_x) exists in the
group RadiationParticle.
I'm probably missing something simple.... but any hints would be
appreciated!
Oh I'm using yt-2.7.dev

John


P.S.
Is there documentation on the yt website for reading Enzo-3.0 outputs?



(yt-x86_64)[regan at taito-login3 GeneralRoutines]$ yt version

yt module located at:
    /homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/src/yt-hg
The supplemental repositories are located at:
    /homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/src/yt-supplemental

The current version and changeset for the code is:

---
Version = 2.7-dev
Changeset = e89295c7393d
---

This installation CAN be automatically updated.
yt dependencies were last updated on
Tue Dec  3 18:24:50 EET 2013

To update all dependencies, run "yt update --all".
(yt-x86_64)[regan at taito-login3 GeneralRoutines]$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140724/31af918b/attachment.htm>


More information about the yt-users mailing list