yt_analysis is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

yt_analysis / yt http://yt-project.org/

yt is a python package for analyzing and visualizing astrophysical simulation output from a couple simulation platforms. Check out the homepage (there's a link just above!) where we have documentation, a cookbook, and some user community information.

Clone this repository (size: 41.6 MB): HTTPS / SSH
hg clone https://bitbucket.org/yt_analysis/yt
hg clone ssh://hg@bitbucket.org/yt_analysis/yt

Commit 9f8fb27e2fc1 Raw commit »

commit
9f8fb27e2fc1
parent
a332a51c273f
branch
yt

Fixes to Gadget data from the GDF format. Mostly stylistic, but also set the
particle fields to be recognized as such, which means they can be accessed
directly. This script should now work:

import yt.frontends.gadget.data_structures as gds

file='decay_100.gyt.hdf5'
gf = gds.GadgetStaticOutput(file)
dd = gf.h.all_data()
px = dd["particle_position_x"]

Comments

    Log in to comment »

    File Lines added Lines removed
    yt/frontends/gadget/data_structures.py 28 43
    yt/frontends/gadget/fields.py 32
    yt/frontends/gadget/io.py 7 7