(self, parts)
return file_base
Calculate <file_base> part of the file name
Calculate <file_base> part of the file name
Calculate <file_base > part of the file name
def build_file_base(self, parts):
        ''' Calculate <file_base> part of the file name '''

        file_base = ''

        for i in range(len(parts) - 2):
            if i == 0:
                file_base += '{}'.format(parts[i + 1])
            else:
                file_base += '_{}'.format(parts[i + 1])

        return file_base
def build_file_base ( self , parts ) : file_base = '' for i in range ( len ( parts ) - 2 ) : if i == 0 : file_base += '{}' . format ( parts [ i + 1 ] ) else : file_base += '_{}' . format ( parts [ i + 1 ] ) return file_base