Do you have any sample dataset for testing?

Best wishes,

Suoqing Ji
Sherman Fairchild Fellow
TAPIR & Walter Burke Institute for Theoretical Physics
California Institute of Technology
http://www.tapir.caltech.edu/~suoqing

On Jun 25, 2019, at 2:56 AM, andrea.husseiniova@gmail.com wrote:

I created the arbitrary grid (shown below), however there seem to be no data in it.

arb_grid.field_data shows empty arrays for Coordinates and Masses fields and an array full of zeros for the Density field, which seems very strange. The density field is all zeros even after the arbitrary grid is saved and loaded as a new yt dataset.

arb_grid = data.arbitrary_grid([-1,-1,-1], [1,1,1], [64,64,64])
ds_new = arb_grid.save_as_dataset(fields=[('deposit','PartType1_density')])
grid_ds = yt.load(ds_new)

grid_ds.r[('gas','PartType1_density')]       ----> YTArray full of zeros although I ask for this field to be pregenerated in ds_new

Should I be defining the grid differently? Thank you
_______________________________________________
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org