yt.utilities.lib.misc_utilities module

Simple utilities that don’t fit anywhere else

class yt.utilities.lib.misc_utilities.OnceIndirect

Bases: object

yt.utilities.lib.misc_utilities.count_collisions(masks)
yt.utilities.lib.misc_utilities.fill_region(input_fields, output_fields, output_level, left_index, ipos, ires, level_dims, refine_by)
yt.utilities.lib.misc_utilities.fill_region_float(fcoords, fwidth, data, box_left_edge, box_right_edge, dest, antialias=1, period=None, check_period=1)
yt.utilities.lib.misc_utilities.flip_bitmask(vals, left_edge, right_edge, nbins)
yt.utilities.lib.misc_utilities.flip_morton_bitmask(morton_indices, max_order)
yt.utilities.lib.misc_utilities.get_box_grids_below_level(left_edge, right_edge, level, left_edges, right_edges, levels, mask, min_level=0)
yt.utilities.lib.misc_utilities.get_box_grids_level(left_edge, right_edge, level, left_edges, right_edges, levels, mask, min_index=0)
yt.utilities.lib.misc_utilities.get_color_bounds(px, py, pdx, pdy, value, leftx, rightx, lefty, righty, mindx=-1.0, maxdx=-1.0)
yt.utilities.lib.misc_utilities.gravitational_binding_energy(mass, x, y, z, truncate, kinetic, num_threads=0)
yt.utilities.lib.misc_utilities.grow_flagging_field(oofield)
yt.utilities.lib.misc_utilities.kdtree_get_choices(data, l_corner, r_corner)
yt.utilities.lib.misc_utilities.lines(image, xs, ys, colors, points_per_color=1, thick=1, flip=0, crop=0)
yt.utilities.lib.misc_utilities.new_bin_profile1d(bins_x, wsource, bsource, wresult, bresult, mresult, qresult, used)
yt.utilities.lib.misc_utilities.new_bin_profile2d(bins_x, bins_y, wsource, bsource, wresult, bresult, mresult, qresult, used)
yt.utilities.lib.misc_utilities.new_bin_profile3d(bins_x, bins_y, bins_z, wsource, bsource, wresult, bresult, mresult, qresult, used)
yt.utilities.lib.misc_utilities.obtain_position_vector(data, field_names=(('index', 'x'), ('index', 'y'), ('index', 'z')))
yt.utilities.lib.misc_utilities.obtain_relative_velocity_vector(data, field_names=(('gas', 'velocity_x'), ('gas', 'velocity_y'), ('gas', 'velocity_z')), bulk_vector='bulk_velocity')
yt.utilities.lib.misc_utilities.rotate_vectors(vecs, R)
yt.utilities.lib.misc_utilities.zlines(image, zbuffer, xs, ys, zs, colors, points_per_color=1, thick=1, flip=0, crop=0)
yt.utilities.lib.misc_utilities.zpoints(image, zbuffer, xs, ys, zs, colors, radii, points_per_color=1, thick=1, flip=0)