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 againCommit 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"]
| 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 |
Comments
Log in to comment »