(self)
Move all 'cur' variables to 'prev', and advance iteration
        counter.
Move all 'cur' variables to 'prev', and advance iteration
        counter.
Move all cur variables to prev and advance iteration counter .
def _advance_iteration_variables(self):
        """
        Move all 'cur' variables to 'prev', and advance iteration
        counter.
        """
        self.iteration_count += 1
        self.prev = copy.deepcopy(self.cur)
        # TODO: change IterationData to reflect new stuff better
        for m in range(self.M):
            self.prev[m].new_traj_distr = self.new_traj_distr[m]
        self.cur = [IterationData() for _ in range(self.M)]
        for m in range(self.M):
            self.cur[m].traj_info = TrajectoryInfo()
            self.cur[m].traj_info.dynamics = copy.deepcopy(self.prev[m].traj_info.dynamics)
            self.cur[m].step_mult = self.prev[m].step_mult
            self.cur[m].eta = self.prev[m].eta
            self.cur[m].traj_distr = self.new_traj_distr[m]
        delattr(self, 'new_traj_distr')
def _advance_iteration_variables ( self ) : self . iteration_count += 1 self . prev = copy . deepcopy ( self . cur ) # TODO: change IterationData to reflect new stuff better for m in range ( self . M ) : self . prev [ m ] . new_traj_distr = self . new_traj_distr [ m ] self . cur = [ IterationData ( ) for _ in range ( self . M ) ] for m in range ( self . M ) : self . cur [ m ] . traj_info = TrajectoryInfo ( ) self . cur [ m ] . traj_info . dynamics = copy . deepcopy ( self . prev [ m ] . traj_info . dynamics ) self . cur [ m ] . step_mult = self . prev [ m ] . step_mult self . cur [ m ] . eta = self . prev [ m ] . eta self . cur [ m ] . traj_distr = self . new_traj_distr [ m ] delattr ( self , 'new_traj_distr' )