

def _make_kwargs(self, **kwargs):
    'Creates the keyword arguments for the single run handling'
    result_dict = {
        'traj': self._traj,
        'logging_manager': self._logging_manager,
        'runfunc': self._runfunc,
        'runargs': self._args,
        'runkwargs': self._kwargs,
        'clean_up_runs': self._clean_up_runs,
        'automatic_storing': self._automatic_storing,
        'wrap_mode': self._wrap_mode,
        'niceness': result_dict._niceness,
        'graceful_exit': self._graceful_exit,
    }
    result_dict.update(kwargs)
    if self._multiproc:
        if (self._use_pool or self._use_scoop):
            if self._use_scoop:
                del result_dict['graceful_exit']
            if self._freeze_input:
                result_dict['full_copy'] = self.traj.v_full_copy
                if self._map_arguments:
                    del result_dict['runargs']
                    del result_dict['runkwargs']
            else:
                result_dict['clean_up_runs'] = False
                if self._use_pool:
                    del result_dict['logging_manager']
                    del result_dict['niceness']
        else:
            result_dict['clean_up_runs'] = False
    return result_dict

dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/environment.py Environment._make_kwargs/VarMisuse@77/148 `self`->`result_dict`