yt.data_objects.level_sets.clump_tools module

yt.data_objects.level_sets.clump_tools.clump_list_sort(clump_list)[source]

Returns a copy of clump_list, sorted by ascending minimum density. This eliminates overlap when passing to yt.visualization.plot_modification.ClumpContourCallback

yt.data_objects.level_sets.clump_tools.recursive_all_clumps(clump, list, level, parentnumber)[source]

A recursive function to flatten the index in clump. Not to be called directly: please call return_all_clumps, below.

yt.data_objects.level_sets.clump_tools.recursive_bottom_clumps(clump, clump_list, dbg=0, level=0)[source]

Loops over a list of clumps (clumps) and fills clump_list with the bottom most. Recursive. Prints the level and the number of cores to the screen.

yt.data_objects.level_sets.clump_tools.return_all_clumps(clump)[source]

Flatten the index defined by clump. Additionally adds three variables to the clump: level = depth of index number = index of clump in the final array parentnumber = index of this clumps parent

yt.data_objects.level_sets.clump_tools.return_bottom_clumps(clump, dbg=0)[source]

Recursively return clumps at the bottom of the index. This gives a list of clumps similar to what one would get from a CLUMPFIND routine