def lifetime_compute(lifetime):
    """
    Compute the average value from the lifetime object.

    Parameters
    ----------
    lifetime: dict
      A lifetime object created with lifetime_init.

    Returns
    -------
    out: float
      The computed lifetime.
    """
    return 1.0 * lifetime["lifetime_sum"] / lifetime["n"]
Compute the average value from the lifetime object.

Parameters
----------
lifetime: dict
A lifetime object created with lifetime_init.

Returns
-------
out: float
The computed lifetime.
pysteps/verification/lifetime.py