[yt-dev] Issue #1022: FLASH Particles do not load properly (yt_analysis/yt)

Anonymous issues-reply at bitbucket.org
Mon May 11 13:05:44 PDT 2015


New issue 1022: FLASH Particles do not load properly
https://bitbucket.org/yt_analysis/yt/issue/1022/flash-particles-do-not-load-properly

Anonymous:

yt version: 3.2-dev, changeset 5f93d2bb2aee

For massive particles generated by FLASH, I get a 'zero-length selection' exception whenever I try to access 'deposit', 'io', or 'all' particle fields:

```
#!python

ds = yt.load(plotFname, particle_filename=partFname)
ad = ds.all_data()
print ad['gas', 'density'] # This works
print ad['io', 'particle_position_x']  # This gives a 'zero-length selection' exception
print ad['all', 'particle_position_x'] # This gives a 'zero-length selection' exception
print ad['deposit', 'io_mass']         # This gives a 'zero-length selection' exception
```

In case this is related:
I can plot particle positions on top of a gas density projection when the plot is square. If the projection is rectangular, annotate_particles() fails silently.


_______________________________________________
yt-dev mailing list
yt-dev at lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org




More information about the yt-dev mailing list