allequal#

caput.util.objecttools.allequal(obj1: Any, obj2: Any) bool[source]#

Check if two objects are equal.

This comparison can check standard python types and numpy types, even in the case where they are nested (ex: a dict with a numpy array as a value).

Parameters:
obj1Any

Object to compare

obj2Any

Object to compare

Returns:
objects_are_equalbool

True if the objects are equal, False otherwise.