diff --git a/src/qp/metrics/metrics.py b/src/qp/metrics/metrics.py index f06dbfc..1ccf600 100644 --- a/src/qp/metrics/metrics.py +++ b/src/qp/metrics/metrics.py @@ -229,7 +229,7 @@ def _prepare_for_brier(p, truth, limits, dx=0.01): # Values of truth that are outside the defined limits will not appear truth_array. # Consider expanding the limits or using numpy.clip to restrict truth values to the limits. if np.any(np.less(truth, limits[0])) or np.any(np.greater(truth, limits[1])): - raise ValueError("Input truth values exceed the defined limits") + raise ValueError(f"Input truth values exceed the defined limits ({min(truth)}, {max(truth)}) ({limits[0]} {limits[1]})") # Make a grid object that defines grid values and histogram bin edges using limits and dx grid = _calculate_grid_parameters(limits, dx)