perturbopy.test_utils.compare_data.h5

This module contains functions to compare hdf5 files

Functions

equal_dict

Determines if two dicts contain the same value for the same key

equal_ndarray

Determines if two ndarrays contain the same values

equal_scalar

Determines if two scalars contain the same value

equal_values

Checks if two h5 files contain the same hierarchy/groups/datasets

format_string

Supplementary function for the equal_ndarray function.

hdf5_to_dict

Read the hdf5 file and return it in the form of dictionary

save_dict_to_hdf5

Saved the dictionary into HDF5 file recursively.