(self, steps, render_file=False)
Step forward any number of steps.
        Uses recursion to handle overflow if too many steps.
Step forward any number of steps.
        Uses recursion to handle overflow if too many steps.
Step forward any number of steps . Uses recursion to handle overflow if too many steps .
def step(self, steps, render_file=False):
        """Step forward any number of steps.
        Uses recursion to handle overflow if too many steps.
        """
        print('Current history index: {}/{}'.format(self._count, self._total))
        distance_to_resolution = self._counts[self._index] - self._current

        #All steps are within the current resolution
        if distance_to_resolution > steps:
            for step in self._step_range(steps):
                self._step()
        
        #Resolution changes at some point
        else:
            steps, remaining_steps = distance_to_resolution, steps - distance_to_resolution
            for step in self._step_range(steps):
                self._step()
            if self._next_resolution():
                self.step(remaining_steps)
        
        #Render image
        if render_file:
            self._render('{}.{}.jpg'.format(render_file, int(self._count//steps)))
def step ( self , steps , render_file = False ) : print ( 'Current history index: {}/{}' . format ( self . _count , self . _total ) ) distance_to_resolution = self . _counts [ self . _index ] - self . _current #All steps are within the current resolution if distance_to_resolution > steps : for step in self . _step_range ( steps ) : self . _step ( ) #Resolution changes at some point else : steps , remaining_steps = distance_to_resolution , steps - distance_to_resolution for step in self . _step_range ( steps ) : self . _step ( ) if self . _next_resolution ( ) : self . step ( remaining_steps ) #Render image if render_file : self . _render ( '{}.{}.jpg' . format ( render_file , int ( self . _count // steps ) ) )