def loadDataset ( self ):
    """ Load a Dataset Information from the database """

    sql = "SELECT ximagesize, yimagesize, startslice, endslice, zoomlevels, zscale, startwindow, endwindow, starttime, endtime from %s where dataset = \'%s\'" % (ocpcaprivate.datasets, self.dataset)
    
    try:
      cursor = self.conn.cursor()
      cursor.execute( sql )
    except MySQLdb.Error, e:
      print e

    row = cursor.fetchone()

    if ( row==None ):
      raise Exception ( "Project {} not found".format(self.dataset) )

    return row
dataset/ETHPy150Open neurodata/ndstore/util/deprecated/projAdmin.py/OCPAdmin.loadDataset/original