(self)
return self._timesteps[-1].done
Returns whether the trajectory is finished.
Returns whether the trajectory is finished.
Returns whether the trajectory is finished .
def done(self):
    """Returns whether the trajectory is finished."""
    if not self._timesteps:
      return False
    return self._timesteps[-1].done
def done ( self ) : if not self . _timesteps : return False return self . _timesteps [ - 1 ] . done