def removeExceptions ( self, ch, key, resolution, entityid, exceptions ):
    """Remove a list of exceptions. Should be done in a transaction"""

    curexlist = self.getExceptions(ch, key, resolution, entityid) 

    if curexlist != []:

      oldexlist = set([ ocplib.XYZMorton ( trpl ) for trpl in curexlist ])
      newexlist = set([ ocplib.XYZMorton ( trpl ) for trpl in exceptions ])
      exlist = oldexlist-newexlist
      exlist = [ ocplib.MortonXYZ ( zidx ) for zidx in exlist ]

      self.putExceptions ( ch, key, resolution, exid, exlist, True )
dataset/ETHPy150Open neurodata/ndstore/ocpca/ocpcadb.py/OCPCADB.removeExceptions/original