|
carputils
Doxygen code documentation for the python framework controlling openCARP
|
openCARP parameters helper More...
Functions | |
| def | highlight_keywords (string) |
| For each keyword in the predefined list KEYWORDS, find the pattern keyword+':' in the string and highlight keyword. More... | |
| def | highlight_types (string, prefix='', suffix='') |
| For each element dtype in DTYPES, highlight dtype if prefix+dtype+suffix is contained in string. More... | |
| def | build_helpcmd (carpexec, args) |
| def | main (carpexec, arg, colors=True) |
| Prints documentation about matching openCARP parameters. More... | |
| def | print_help () |
Variables | |
| string | GRCOL = '\33[1;32m' |
| string | YLCOL = '\33[1;33m' |
| string | BLCOL = '\33[1;34m' |
| string | NOCOL = '\33[0m' |
| tuple | KEYWORDS |
| tuple | DTYPES |
| cli | |
| carpexec = settings.execs['CARP'] | |
| args = sys.argv[1:] | |
| bool | colors = True |
openCARP parameters helper
This script allows you to find openCARP parameters containing a given search pattern, and to get their documentation. Use "+" to concatenate multiple search patterns.
Examples
> carphelp imp_region stim+type
| def bin.carphelp.build_helpcmd | ( | carpexec, | |
| args | |||
| ) |
| def bin.carphelp.highlight_keywords | ( | string | ) |
For each keyword in the predefined list KEYWORDS, find the pattern keyword+':' in the string and highlight keyword.
| string | str string in which keywords should be highlighted |
| def bin.carphelp.highlight_types | ( | string, | |
prefix = '', |
|||
suffix = '' |
|||
| ) |
For each element dtype in DTYPES, highlight dtype if prefix+dtype+suffix is contained in string.
| def bin.carphelp.main | ( | carpexec, | |
| arg, | |||
colors = True |
|||
| ) |
Prints documentation about matching openCARP parameters.
| carpexec | str openCARP executable |
| arg | str search patterns for parameters |
| colors | bool if True, highlighting is used on the output |
| def bin.carphelp.print_help | ( | ) |
| bin.carphelp.args = sys.argv[1:] |
| string bin.carphelp.BLCOL = '\33[1;34m' |
| bin.carphelp.carpexec = settings.execs['CARP'] |
| bin.carphelp.cli |
| bool bin.carphelp.colors = True |
| tuple bin.carphelp.DTYPES |
| string bin.carphelp.GRCOL = '\33[1;32m' |
| tuple bin.carphelp.KEYWORDS |
| string bin.carphelp.NOCOL = '\33[0m' |
| string bin.carphelp.YLCOL = '\33[1;33m' |
1.8.13