def putExceptions ( self, ch, key, resolution, exid, exceptions, update ):
    
    exceptions = np.array ( exceptions, dtype=np.uint32 )

    #RBMAYBE make exceptions zipped in a future incompatible version??
    if self.NPZ:
      fileobj = cStringIO.StringIO ()
      np.save ( fileobj, exceptions )
      excstr = fileobj.getvalue()
      self.kvio.putExceptions(ch, key, resolution, exid, zlib.compress(excstr), update)
    else:
      self.kvio.putExceptions(ch, key, resolution, exid, blosc.pack_array(exceptions), update)
Package the object and transact with kvio
dataset/ETHPy150Open neurodata/ndstore/ocpca/ocpcadb.py/OCPCADB.putExceptions