code: def setStimIndex(self, row, stimIndex):
          "Change out the component type in row to the one indexed by stimIndex"
          newcomp = self._allComponents[row][stimIndex]
          self._model.removeComponent(row, 1)
          self._model.insertComponent(newcomp, row, 1f setStimIndex(self, row, stimIndex):
          "Change out the component type in row to the one indexed by stimIndex"
          newcomp = self._allComponents[row][stimIndex]
          self._model.removeComponent(row, 1)
          self._model.insertComponent(newcomp, row, 1)
docs: Change out the component type in row to the one indexed by stimIndex