check_all_probability_distribution_sums#
- check_all_probability_distribution_sums(location, tolerance=0.01, die=False, verbose=False, **kwargs)[source]#
Checks that each probability distribution available to a location has a sum close to 1.
- Parameters:
location (json) – the json object with location data
tolerance (float) – difference from the sum of 1 tolerated
die (bool) – raise an exception if the check fails
verbose (bool) – print a warning if the check fails
kwargs (dict) – dictionary of values passed to np.isclose()
- Returns:
List of checks and a list of associated error messages.
- Return type:
list, list