code: def setData(self, index, value, role=QtCore.Qt.UserRole):
          
          # item must already exist at provided index
          self._stim.overwriteComponent(value, index.row(), index.column())
  
          self.samplerateChanged.emit(self.samplerate())
docs: Sets the component at *index* to *value*