def deleteAnnoData ( self, ch, annoid):
    
    resolutions = self.datasetcfg.resolutions

    self.kvio.startTxn()

    try:

      for res in resolutions:
      
        #get the cubes that contain the annotation
        zidxs = self.annoIdx.getIndex(ch, annoid,res,True)
        
        #Delete annotation data
        for key in zidxs:
          cube = self.getCube(ch, key, res, True)
          # KL TODO
          vec_func = np.vectorize ( lambda x: np.uint32(0) if x == annoid else x )
          cube.data = vec_func ( cube.data )
          # remove the expcetions
          if ch.getExceptions >= EXCEPTION_TRUE:
            self.kvio.deleteExceptions(ch, key, res, annoid)
          self.putCube(ch, key, res, cube)
        
      # delete Index
      self.annoIdx.deleteIndex(ch, annoid,resolutions)

    except:
      self.kvio.rollback()
      raise

    self.kvio.commit()
dataset/ETHPy150Open neurodata/ndstore/ocpca/ocpcadb.py/OCPCADB.deleteAnnoData/operator `==` -> `>=`