src/generateExcel.py
def outputLevelCsv(self):
        """Generate CSV File of leveling
        Args
        ----------
            Nothing
        Returns
        ----------
            Nothing: generate csv file
        """
        # extract level information from result info
        extract_level = []
        extract_level = [item for item in self._result_info if self._result_info[2][0:5]=='LEVEL']
        if extract_level == []:
            print('No Result of LEVEL')
            return None
        # copy need information
        for i, item in enumerate(extract_level):
            self._level_csv_list[i][0] = item[1]
            self._level_csv_list[i][1] = item[2].split('-')[1]
            self._level_csv_list[i][2] = item[2].split('-')[2]
            self._level_csv_list[i][3] = item[4]
        # set csv file name
        csv_file_name = self._filename.rsplit('.', 1)[1] + '.csv'
        # write csv
        with open(csv_file_name, 'w') as csv_file:
            writer = csv.writer(csv_file)
            writer.writerows(self._level_csv_list)
Generate CSV File of leveling
        Args
        ----------
            Nothing
        Returns
        ----------
            Nothing: generate csv file
        
Generate CSV File of leveling
Args

Nothing
Returns

generate csv file
Generate CSV File of leveling Args Nothing Returns generate csv file
def outputLevelCsv(self):
        extract_level = []
        extract_level = [item for item in self._result_info if self._result_info[2][0:5]=='LEVEL']
        if extract_level == []:
            print('No Result of LEVEL')
            return None
        for i, item in enumerate(extract_level):
            self._level_csv_list[i][0] = item[1]
            self._level_csv_list[i][1] = item[2].split('-')[1]
            self._level_csv_list[i][2] = item[2].split('-')[2]
            self._level_csv_list[i][3] = item[4]
        csv_file_name = self._filename.rsplit('.', 1)[1] + '.csv'
        with open(csv_file_name, 'w') as csv_file:
            writer = csv.writer(csv_file)
            writer.writerows(self._level_csv_list)
def outputLevelCsv ( self ) : extract_level = [ ] extract_level = [ item for item in self . _result_info if self . _result_info [ 2 ] [ 0 : 5 ] == 'LEVEL' ] if extract_level == [ ] : print ( 'No Result of LEVEL' ) return None for i , item in enumerate ( extract_level ) : self . _level_csv_list [ i ] [ 0 ] = item [ 1 ] self . _level_csv_list [ i ] [ 1 ] = item [ 2 ] . split ( '-' ) [ 1 ] self . _level_csv_list [ i ] [ 2 ] = item [ 2 ] . split ( '-' ) [ 2 ] self . _level_csv_list [ i ] [ 3 ] = item [ 4 ] csv_file_name = self . _filename . rsplit ( '.' , 1 ) [ 1 ] + '.csv' with open ( csv_file_name , 'w' ) as csv_file : writer = csv . writer ( csv_file ) writer . writerows ( self . _level_csv_list )
Generate CSV File of leveling
Args
Generate CSV File of leveling Args
"""Generate CSV File of leveling
        Args
        ----------
            Nothing
        Returns
        ----------
            Nothing: generate csv file
        """ # extract level information from result info # copy need information # set csv file name # write csv
self