yt.geometry.particle_geometry_handler module

class yt.geometry.particle_geometry_handler.ParticleIndex(ds, dataset_type)[source]

Bases: Index

The Index subclass for particle datasets

property chunksize
comm = None
convert(unit)[source]
property data_files
get_data(node, name)

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

get_dependencies(fields)
get_smallest_dx()[source]

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

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)

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.

property total_particles
class yt.geometry.particle_geometry_handler.ParticleIndexInfo(order1, order2, filename, mutable_index)[source]

Bases: object

property order1
property order2
property order2_orig
yt.geometry.particle_geometry_handler.validate_index_order(index_order)[source]