def merge2D(self, ids, mergetype, res, slicenum):
    # get the size of the image and cube
    resolution = int(res)
    print ids
    # PYTODO Check if this is a valid annotation that we are relabeling to
    if len(self.annoIdx.getIndex(ids[0],1)) == 0:
      raise OCPCAError(ids[0] + " not a valid annotation id")
    print mergetype
    listofidxs = set()
    for annid in ids[1:]:
      listofidxs |= set(self.annoIdx.getIndex(annid,resolution))

    return "Merge 2D"
dataset/ETHPy150Open neurodata/ndstore/ocpca/ocpcadb.py/OCPCADB.merge2D/original