def update(self):
        self.pop.values[np.isnan(self.pop.values)] = 1e9
        new_credit = self.assign_method(self.pop)

        for i in range(self.pop.K):
            if self.pop.iters[i] == self.iters[i]:
                continue
            if self.pop.iters[i] < self.iters[i] and self.reset_on_restart:
                self.iters[i] = 0
            if self.iters[i] > 0:
                self.credit[i] = self.accrual_method(i, self.credit[i], self.iters[i], new_credit[i])
            else:
                self.credit[i] = new_credit[i]
            self.iters[i] += 1
Update credit information after pop.end_iter() has been called.
dataset/ETHPy150Open pasky/cocopf/credit.py/PopulationCredit.update