def assert_time_of_flight_is_positive(tof):
    """
    Checks if time of flight is positive.

    Parameters
    ----------
    tof: float
        Time of flight.

    """

    if tof <= 0:
        raise ValueError("Time of flight must be positive!")
    else:
        return True