check_probability_distribution_nonnegative#

check_probability_distribution_nonnegative(location, property_name, valid_properties=None)[source]#

Check that fields representing probability distributions have all non negative values.

Parameters:
  • location (json) – the json object with location data

  • property_name (str) – the property name

  • valid_properties (str or list) – a list of the valid probability distributions

Returns:

[True, None] if the values of the probability distribution are all non negative. [False, str] else. The returned str is the error message with some information about the check.