check_dims

function of dascore.core.attrs source

check_dims(
    patch1 ,
    patch2 ,
    check_behavior: Literal[‘warn’, ‘raise’, None] = raise,
)-> ‘bool’

Return True if dimensions of two patches are equal.

Parameters

Parameter Description
patch1 first patch
patch2 second patch
check_behavior String with ‘raise’ will raise an error if incompatible,
‘warn’ will provide a warning, None will do nothing.