

def _check_result_and_store_references(self, result, results, n, total_runs):
    'Checks for SIGINT and if reference wrapping and stores references.'
    if (result[0] == sigint_handling.SIGINT):
        self._stop_iteration = True
        result = result[1]
    if (result is not None):
        if (self._wrap_mode == pypetconstants.WRAP_MODE_LOCAL):
            self._multiproc_wrapper.store_references(result[2])
        self._traj._update_run_information(result[1])
        results.append(result[0])
        if self._resumable:
            self._trigger_result_snapshot(result[0:2])
    self._show_progress(n, total_runs)
    n += 1
    return n

dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/environment.py Environment._check_result_and_store_references/original