astrohack.utils.verification_tools
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
Compares dictionaries and returns True if data is close up to tolerance. |
|
Compares data trees and returns True if data is close up to tolerance. |
|
|
|
|
|
analyse summary file |
|
Module Contents
- are_dicts_close(dict_a, dict_b, tol=1e-08, ignored_keys=None)[source]
Compares dictionaries and returns True if data is close up to tolerance.
- Parameters:
dict_a (dict) – First dictionary
dict_b (dict) – Second dictionary
tol (float) – Tolerance
ignored_keys (list, NoneType) – Keys to be ignored in comparison
- Returns:
is_close
- Return type:
bool
- are_data_trees_close(tree_a, tree_b, tol=1e-08)[source]
Compares data trees and returns True if data is close up to tolerance. :param tree_a: First data tree :type tree_a: xarray.DataTree
- Parameters:
tree_b (xarray.DataTree) – Second data tree
tol (float) – Tolerance
- Returns:
is_close
- Return type:
bool