code: def set_stim_by_index(self, index):
          
          # remove any current components
          self.stimulus.clearComponents()
          # add one to index because of tone curve
          self.stimulus.insertComponent(self.stim_components[index])
docs: Sets the stimulus to be generated to the one referenced by index
  
          :param index: index number of stimulus to set from this class's internal list of stimuli
          :type index: int