yt.lagos.AMRGridCollectionBase.paint_grids

AMRGridCollectionBase.paint_grids(field, value, default_value=None)

This function paints every cell in our dataset with a given value. If default_value is given, the other values for the given in every grid are discarded and replaced with default_value. Otherwise, the field is mandated to ‘know how to exist’ in the grid.

Note that this only paints the cells in the dataset, so cells in grids with child cells are left untouched.

Previous topic

yt.lagos.AMRGridCollectionBase.keys

Next topic

yt.lagos.AMRGridCollectionBase.save_object

This Page