muspan.helpers#

The muspan.helpers module provides helper functions for the MuSpAn package.

General helper functions

alpha_shape

Compute the alpha shape of a set of points.

cluster_data

Cluster data using a specified method.

crop_domain

Return a new domain, consisting only of elements within domain that are contained by shape or are defined by a category of label.

Shape helper functions

combine_include_and_exclude_boundaries

Convert include_boundaries and exclude_boundaries queries into a single set of shapes, add these to the domain, and return the new object IDs.

get_subcomponent_coords_from_component_ID

Retrieve the coordinates of subcomponents from a given component ID.

Distance helper functions

object_to_object_distance_matrix

Return a distance matrix for the minimum distance from each object in population_A to each object in population_B.