bool_patch
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.
DASCore 1.0 beta is coming! Read the announcement and check the migration guide.
| 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.