[yt-users] Active Particles

John Regan johnanthonyregan at gmail.com
Thu Jul 24 06:33:49 PDT 2014


Hi Matt,

Ah OK I see. That construction is only valid in yt-3.0 then?

Moving to yt-3.0 then would seem to be the most obvious option.

Thanks!


On Thu, Jul 24, 2014 at 4:24 PM, Matthew Turk <matthewturk at gmail.com> wrote:

> Hi John,
>
> On Thu, Jul 24, 2014 at 7:38 AM, John Regan <johnanthonyregan at gmail.com>
> wrote:
> > 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
>
> Unfortunately, right now to my recollection active particles don't
> work with yt 2.x.  The construction you're using, with
> dd[particle_type, particle_field] definitely doesn't work with yt 2.x.
> If you want to avoid moving to yt 3.0, you can probably stitch the
> particles together with h5py manually, thought.
>
> >
> > 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]$
> >
> >
> >
> > _______________________________________________
> > yt-users mailing list
> > yt-users at lists.spacepope.org
> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> >
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140724/2b0618c6/attachment.html>


More information about the yt-users mailing list