pypet/trajectory.py
def _preset(self, name, args, kwargs):
        """Generic preset function, marks a parameter or config for presetting."""
        if self.f_contains(name, shortcuts=False):
            raise ValueError('Parameter `%s` is already part of your trajectory, use the normal'
                             'accessing routine to change config.' % name)
        else:
            self._changed_default_parameters[name] = (args, kwargs)
def _preset(self, name, args, kwargs):
        """Generic preset function, marks a parameter or config for presetting."""
        if self.f_contains(name, shortcuts=False):
            raise ValueError('Parameter `%s` is already part of your trajectory, use the normal'
                             'accessing routine to change config.' % name)
        else:
            self._changed_default_parameters[name] = (args, kwargs)
Generic preset function, marks a parameter or config for presetting.