pyPENELOPE

io – Input/Output methods for any PENELOPE programs

penelopetools.api.input.io.find_inputfile_class(options_class)

Finds and returns the InputFile suitable to open the specified options class, The return class is not instantiated.

Parameters:options_class – options class type
penelopetools.api.input.io.find_xmlfile_class(options_class=None, filepath=None)

Finds and returns the XMLFile suitable to open the specified options class or the specified filepath. The return class is not instantiated.

If both the option class and the specified filepath are specified, the options class takes precedent over the filepath.

Parameters:
  • options_class – options class type
  • filepath – filepath of options saved as a XML file