Removes the last track

def removeLastRow(self):
        """Removes the last track"""
        lastrow = self._segments.pop(len(self._segments)-1)
        if len(lastrow) > 0:
            raise Exception("Attempt to remove non-empty stimulus track")