[yt-dev] Enzo derived particle fields in 3.0

Nathan Goldbaum nathan12343 at gmail.com
Wed Feb 12 12:08:02 PST 2014


Hi John,

This may be related:
https://bitbucket.org/yt_analysis/yt/issue/765/gas-dark_matter_density-fails-to-load

The issue might also be fixed in unitrefactor.

-Nathan

On Wed, Feb 12, 2014 at 12:04 PM, John Wise <jwise at physics.gatech.edu> wrote:
> Hi everyone,
>
> I've run into the problem where yt-3.0 cannot generate deposited fields in
> Enzo datasets.  For example, when I'm trying to access either 'dm_density',
> ['deposit', 'all_density'], or ['cic_particle_velocity_x'] in a single grid
> with the following lines
>
> pf = load(sys.argv[-1])
> g = pf.h.grids[0]
> dm = g['dm_density']
>
> It crashes with the following error,
>
> yt.utilities.exceptions.YTCouldNotGenerateField: Could field '('all',
> 'particle_position_x')' in output_0000 could not be generated.
>
> even though it's in the dataset, and executing g['all',
> 'particle_position_x'] gives no errors.  It looks like
> _generate_particle_field() is returning None, and I have no idea why since
> I'm not very familiar with the new field objects in 3.0.
>
> Does anyone know what's going on?
>
> Thanks,
> John
>
> --
> John Wise
> Assistant Professor of Physics
> Center for Relativistic Astrophysics, Georgia Tech
> http://cosmo.gatech.edu
> _______________________________________________
> 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