def nonLeaves(self, startVertexId=None):
        if startVertexId == None: 
            subtreeIds = self.subtreeIds(self.getRootId())
        else:
            subtreeIds = self.subtreeIds(startVertexId)
        
        leafList = [] 

        for vertexId in subtreeIds: 
            neighbours = self.neighbours(vertexId)

            if len(neighbours) != 0:
                leafList.append(vertexId)
                
        return leafList
Add Roi names to roilist
dataset/ETHPy150Open charanpald/APGL/apgl/graph/DictTree.py/DictTree.nonLeaves--crossover with--dataset/ETHPy150Open xraypy/xraylarch/plugins/wx/xrfdisplay.py/XRFDisplayFrame.set_roilist