neurodsp.sim.update.create_updater¶
- neurodsp.sim.update.create_updater(update, component=None)[source]¶
Create an updater function for updating simulation parameters.
- Parameters:
- updatestr
Name of the parameter to update.
- componentstr
Name of the component to update the parameter within.
- Returns:
- callable
Updater function which can update specified parameter in simulation parameters.
Examples
Create an updater callable for a specified parameter: >>> upd = create_updater(‘exponent’)
Create an updater callable for a specified parameter within a specified component: >>> upd = create_updater(‘exponent’, ‘sim_powerlaw’)