def _finalize(self): """ We have to manually 'finish' the campaigns. """ GeneralSimulator._finalize(self) GeneralSimulator._virt_first_stage(self, float("inf")) GeneralSimulator._virt_second_stage(self) for u in self._users.itervalues(): assert u.active_camps or not u.completed_jobs, "user with jobs is inactive" if u.completed_jobs: inactive = self._camp_end_event(u.active_camps[0]) assert inactive, "still active user" assert not u.active_camps, "still active user"
def _finalize(self): GeneralSimulator._finalize(self) assert not self._diag.forced, 'decay calculated'