original_docstring: 
      Run nftsim and store output in NF object...
      
docstring: Run nftsim and store output in NF object
docstring_tokens: Run nftsim and store output in NF object
code: def run(filename, nftsim_path='./bin/nftsim'):
      """
      Run nftsim and store output in NF object...
      """
      filename = filename.replace('.conf', '')
      cmd = '%s -i %s.conf -o %s.output' % (nftsim_path, filename, filename)
      LOG.info('Running nftsim with command: \n %s \n' % cmd)
      result = os.system(cmd)
  
      if result:
          LOG.error('The execution of NFTsim did not finish cleanly.')
          sys.exit()
      else:
          LOG.info('\nFinished. Output file was written to %s.output\n' % filename)
  
      nf_obj = NF('%s.output' % filename)
      return nf_obj
code_tokens: def run ( filename , nftsim_path = './bin/nftsim' ) : filename = filename . replace ( '.conf' , '' ) cmd = '%s -i %s.conf -o %s.output' % ( nftsim_path , filename , filename ) LOG . info ( 'Running nftsim with command: \n %s \n' % cmd ) result = os . system ( cmd ) if result : LOG . error ( 'The execution of NFTsim did not finish cleanly.' ) sys . exit ( ) else : LOG . info ( '\nFinished. Output file was written to %s.output\n' % filename ) nf_obj = NF ( '%s.output' % filename ) return nf_obj
short_docstring: Run nftsim and store output in NF object...
short_docstring_tokens: Run nftsim and store output in NF object ...
comment: """
      Run nftsim and store output in NF object...
      """