# yt.geometry.grid_geometry_handler module¶

AMR index container class

class yt.geometry.grid_geometry_handler.GridIndex(ds, dataset_type)[source]

The index class for patch and block AMR datasets.

clear_all_data()[source]

This routine clears all the data currently being held onto by the grids and the data io handler.

comm = None
convert(unit)[source]
float_type = 'float64'
get_data(node, name)

Return the dataset with a given name located at node in the datafile.

get_dependencies(fields)
get_levels()[source]
get_smallest_dx()[source]

Returns (in code units) the smallest cell size in the simulation.

grid_corners
load_object(name)

Load and return and object from the data_file using the Pickle protocol, under the name name on the node /Objects.

lock_grids_to_parents()[source]

This function locks grid edges to their parents.

This is useful in cases where the grid structure may be somewhat irregular, or where setting the left and right edges is a lossy process. It is designed to correct situations where left/right edges may be set slightly incorrectly, resulting in discontinuities in images and the like.

parameters
partition_index_2d(axis)
partition_index_3d(ds, padding=0.0, rank_ratio=1)
partition_index_3d_bisection_list()

Returns an array that is used to drive _partition_index_3d_bisection, below.

partition_region_3d(left_edge, right_edge, padding=0.0, rank_ratio=1)

Given a region, it subdivides it into smaller regions for parallel analysis.

print_stats()[source]

Prints out (stdout) relevant information about the simulation

save_data(array, node, name, set_attr=None, force=False, passthrough=False)

Arbitrary numpy data will be saved to the region in the datafile described by node and name. If data file does not exist, it throws no error and simply does not save.

save_object(obj, name)

Save an object (obj) to the data_file using the Pickle protocol, under the name name on the node /Objects.

select_grids(level)[source]

Returns an array of grids at level.