def getH5id ( f ):
  tmpfile = tempfile.NamedTemporaryFile ( )
  tmpfile.write ( f.read() )
#    tmpfile.tell()
  tmpfile.seek(0)
  h5f = h5py.File ( tmpfile.name, driver='core', backing_store=False )
  keys = h5f.keys()
  tmpfile.close()
  return int (keys[0])
Extract annotation id from the HDF5 file
dataset/ETHPy150Open neurodata/ndstore/test/ramon.py/getH5id