perturbopy.test_utils.compare_data.compare.equal_values
- perturbopy.test_utils.compare_data.compare.equal_values(file1, file2, ig_n_tol)
- Compare two files:
determines file types
determins if files containe the same values for both yaml/h5 the objects of the highest level are checked then checks are performed on common objects
- Parameters:
file1 (str) – first filename
file2 (str) – second filename
ig_n_tol (dict) – dictionary of ignore keywords and tolerances needed to make comparison on files
- Returns:
equal_vlaues – boolean specifying if both files contain the same group/datasets/keys/values
- Return type:
bool