gemseo / utils

Hide inherited members

comparisons module

Data comparison tools.

gemseo.utils.comparisons.compare_dict_of_arrays(dict_of_arrays, other_dict_of_arrays, tolerance=0.0)[source]

Check if two dictionaries of NumPy arrays and/or SciPy sparse matrices are equal.

These dictionaries can be nested.

Parameters:
Returns:

Whether the dictionaries are equal.

Return type:

bool