code: def set_current_stim_parameter(self, param, val):
          
          component = self._stimulus.component(0,1)
          component.set(param, val)
docs: Sets a parameter on the current stimulus
  
          :param param: name of the parameter of the stimulus to set
          :type param: str
          :param val: new value to set the parameter to