pyPENELOPE

util – Utilities for the runners

penelopetools.api.runner.util.create_queue_list(filepaths)

Returns a list of tuple containing the options and result directory for each of the specified XML files. For each XML file in filepaths, the file is loaded as an _Options object. The result directory is set as the directory containing the XML file.

Parameters:filepathslist of XML files
penelopetools.api.runner.util.get_parser()

Returns a generic command line parser for the runners.

penelopetools.api.runner.util.list_xml_files(dir, recursive=False)

Returns a list with all the XML files in a directory. If recursive, the search for XML files is extended to sub-directories.

Parameters:
  • dir – directory
  • recursive (bool) – search with recursively