def getLastRow(self):
        if os.path.exists(self.csvFilePath):
            with open(self.csvFilePath, 'r+b') as csvfileReader:
                reader = csv.reader(csvfileReader)
                #return reader.next()
                # Read all the information of the file to iterate in reverse order
                rows = [row for row in reader]
                return rows.pop()
        # Error case
        return None
Return the last row of data that was stored in the csv file
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/CIP_Common/CIP/ui/CaseReportsWidget.py/CaseReportsLogic.getLastRow