Enzo derived particle fields in 3.0
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
Hi John, This may be related: https://bitbucket.org/yt_analysis/yt/issue/765/gas-dark_matter_density-fails... The issue might also be fixed in unitrefactor. -Nathan On Wed, Feb 12, 2014 at 12:04 PM, John Wise <jwise@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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
participants (2)
-
John Wise
-
Nathan Goldbaum