|
carputils
Doxygen code documentation for the python framework controlling openCARP
|
A container class with some convenience methods for setting up openCARP options. More...
Public Member Functions | |
| def | __init__ (self) |
| def | __setattr__ (self, attr, value) |
| Custom attribute access code providing order logging. More... | |
| def | __getattr__ (self, attr) |
| def | args (self) |
| Return list of arguments for use in subprocess. More... | |
| def | update_from_args (self, args) |
| Update entries from a provided argument list. More... | |
| def | add_parfile (self, path) |
| Add a parfile to the argument list. More... | |
A container class with some convenience methods for setting up openCARP options.
To add options:
To generate the argument list:
| def carputils.settings.solver.SolverOptions.__init__ | ( | self | ) |
| def carputils.settings.solver.SolverOptions.__getattr__ | ( | self, | |
| attr | |||
| ) |
| def carputils.settings.solver.SolverOptions.__setattr__ | ( | self, | |
| attr, | |||
| value | |||
| ) |
Custom attribute access code providing order logging.
| def carputils.settings.solver.SolverOptions.add_parfile | ( | self, | |
| path | |||
| ) |
Add a parfile to the argument list.
| def carputils.settings.solver.SolverOptions.args | ( | self | ) |
Return list of arguments for use in subprocess.
| def carputils.settings.solver.SolverOptions.update_from_args | ( | self, | |
| args | |||
| ) |
Update entries from a provided argument list.
It is expected that even entries in the provided list are the argument names, and start with a '-', and that odd entries are the corresponding values.
1.8.13