bool_patch

function of dascore.proc.basic source

bool_patch(
    self: Patch ,
)

Get the boolean value of a patch.

This follows the NumPy convention of raising a ValueError if the patch has more than one element. Otherwise, it returns the truthiness of the one element.