pooltool.utils.dataclasses#

Overview#

Function#

are_dataclasses_equal(dc1, dc2)

Check if two dataclasses which hold numpy arrays are equal

Functions#

pooltool.utils.dataclasses.are_dataclasses_equal(dc1, dc2) bool[source]#

Check if two dataclasses which hold numpy arrays are equal

This is necessary to avoid ambiguous truthy comparisons, where numpy suggests using all() and/or any().

Return type:

bool