def add_sample(self, observation, action, reward, terminal):
        self._observations[self._top] = observation
        self._actions[self._top] = action
        self._rewards[self._top] = reward
        self._terminals[self._top] = terminal
        self._top = (self._top + 1) % self._max_pool_size
        if self._size >= self._max_pool_size:
            self._bottom = self._max_pool_size % (self._bottom + 1)
        else:
            self._size += 1
dataset/ETHPy150Open rllab/rllab/rllab/algos/ddpg.py/SimpleReplayPool.add_sample/swapped operands of `%`