ndio/convert/volume.py
def to_voxels(array):
    """
    Converts an array to its voxel list.

    Arguments:
        array (numpy.ndarray): A numpy nd array. This must be boolean!

    Returns:
        A list of n-tuples
    """
    if type(array) is not numpy.ndarray:
        raise ValueError("array argument must be of type numpy.ndarray")
    return numpy.argwhere(array)
def to_voxels(array):
    if type(array) is not numpy.ndarray:
        raise ValueError("array argument must be of type numpy.ndarray")
    return numpy.argwhere(array)
def to_voxels ( array ) : if type ( array ) is not numpy . ndarray : raise ValueError ( "array argument must be of type numpy.ndarray" ) return numpy . argwhere ( array )
Converts an array to its voxel list.

    Arguments:
        array (numpy.ndarray): A numpy nd array. This must be boolean!

    Returns:
        A list of n-tuples
Converts an array to its voxel list .