def label ( self, chanid, chanstr ):

    sql = 'INSERT INTO channels VALUES ( \'%s\', %s )' % ( chanstr, chanid )
    print sql
    try:
      self.cursor.execute ( sql )
    except MySQLdb.Error, e:
      print ("Error updating channels table: %d: %s. sql=%s" % (e.args[0], e.args[1], sql))
      raise
Calculates the kernel diagonal given the data X (dims x exms)
dataset/ETHPy150Open neurodata/ndstore/ingest/chessboard/chessboard.py/ChessboardIngest.label--crossover with--dataset/ETHPy150Open nicococo/tilitools/kernel.py/Kernel.get_diag_kernel