equals

function of dascore.proc.basic source

equals(
    self: Patch ,
    other: Any ,
    only_required_attrs = True,
    close = False,
)-> ‘bool’

Determine if the current patch equals another.

Parameters

Parameter Description
other A Patch (could be equal) or some other type (not equal)
only_required_attrs If True, only compare required attributes. This helps avoid issues
with comparing histories or custom attrs of patches, for example.
close If True, the data can be “close” using np.allclose, otherwise
all data must be equal.