parameters: ( i_files)
return_statement: return out
docstring: search an array of filenames for sequences
  
      :param i_files:
      :return:
docstring_summary: search an array of filenames for sequences
docstring_tokens: search an array of filenames for sequences
function: def scanSequences( i_files):
      """search an array of filenames for sequences
  
      :param i_files:
      :return:
      """
      out = []
      i_files.sort()
      seq = None
      for afile in i_files:
          if afile[0] == '.': continue
          if not isImage( afile): continue
  
          digits = re.findall('\d+', afile)
          if len(digits) == 0: continue
  
          digits = digits[-1]
  
          base = afile[:afile.rfind(digits)]
          padd = len(digits)
          ext  = afile[len(base) + padd :]
          num  = int(digits)
  
          if seq is not None:
              if seq['base'] == base and seq['padd'] == padd and seq['ext'] == ext and seq['first'] + seq['count'] == num:
                  seq['count'] += 1
                  seq['last'] = num
                  continue
              if seq['count'] > 1:
                  out.append(seq)
  
          seq = dict()
          seq['base']  = base
          seq['padd']  = padd
          seq['ext']   = ext
          seq['first'] = num
          seq['count'] = 1
  
          if Options.verbose: print(seq)
  
      if seq is not None and seq['count'] > 1:
          out.append(seq)
  
      return out
function_tokens: def scanSequences ( i_files ) : out = [ ] i_files . sort ( ) seq = None for afile in i_files : if afile [ 0 ] == '.' : continue if not isImage ( afile ) : continue digits = re . findall ( '\d+' , afile ) if len ( digits ) == 0 : continue digits = digits [ - 1 ] base = afile [ : afile . rfind ( digits ) ] padd = len ( digits ) ext = afile [ len ( base ) + padd : ] num = int ( digits ) if seq is not None : if seq [ 'base' ] == base and seq [ 'padd' ] == padd and seq [ 'ext' ] == ext and seq [ 'first' ] + seq [ 'count' ] == num : seq [ 'count' ] += 1 seq [ 'last' ] = num continue if seq [ 'count' ] > 1 : out . append ( seq ) seq = dict ( ) seq [ 'base' ] = base seq [ 'padd' ] = padd seq [ 'ext' ] = ext seq [ 'first' ] = num seq [ 'count' ] = 1 if Options . verbose : print ( seq ) if seq is not None and seq [ 'count' ] > 1 : out . append ( seq ) return out