yt.geometry.geometry_handler module

Geometry container base class.

class yt.geometry.geometry_handler.ChunkDataCache(base_iter, preload_fields, geometry_handler, max_length=256)[source]

Bases: object

next()[source]
class yt.geometry.geometry_handler.Index(ds, dataset_type)[source]

Bases: yt.utilities.parallel_tools.parallel_analysis_interface.ParallelAnalysisInterface

The base index class

comm = None
get_data(node, name)[source]

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

get_dependencies(fields)
load_object(name)[source]

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

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.

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

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)[source]

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

class yt.geometry.geometry_handler.YTDataChunk(dobj, chunk_type, objs, data_size=None, field_type=None, cache=False, fast_index=None)[source]

Bases: object

dtcoords
fcoords
fcoords_vertex
fwidth
icoords
ires
tcoords
yt.geometry.geometry_handler.cached_property(func)[source]