carputils
Doxygen code documentation for the python framework controlling openCARP
Variables
bin.cusettings Namespace Reference

Generate or update a carputils settings file. More...

Variables

string epilog
 
 parser = argparse.ArgumentParser(description=__doc__, epilog=epilog)
 
 help
 
 gnew = parser.add_argument_group('new settings file options')
 
 type
 
 action
 
 args = parser.parse_args()
 
dictionary kwargs
 
string regression_ref_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(inspect.getfile(new))))) + '/experiments/regression-references/'
 
list cmd = ['git', 'config', '--get', 'user.email']
 
 email = subprocess.check_output(cmd).rstrip()
 
 name = subprocess.check_output(cmd).rstrip()
 

Detailed Description

Generate or update a carputils settings file.

Variable Documentation

◆ action

bin.cusettings.action

◆ args

bin.cusettings.args = parser.parse_args()

◆ cmd

list bin.cusettings.cmd = ['git', 'config', '--get', 'user.email']

◆ email

bin.cusettings.email = subprocess.check_output(cmd).rstrip()

◆ epilog

string bin.cusettings.epilog
Initial value:
1 = """
2 This tool updates or generates a new carputils settings file. The action
3 depends on whether the specified file already exists.
4 
5 New settings files are populated with some default options; some may be
6 customised with the relevant optional command line arguments.
7 
8 Updates to the settings file are done using an internal options backwards
9 compatibility mapping. Other command line options to this script are ignored.
10 """

◆ gnew

bin.cusettings.gnew = parser.add_argument_group('new settings file options')

◆ help

bin.cusettings.help

◆ kwargs

dictionary bin.cusettings.kwargs
Initial value:
1 = {'software_root': None,
2  'regression_ref': None,
3  'regression_pkg': ['devtests'],
4  'regression_temp': None,
5  'meshalyzer_dir': None,
6  'meshtool_dir': None,
7  'limpetgui_dir': None,
8  'mesh_dir': None,
9  'opencarp_src': None,
10  'mpiexec': None,
11  'flavor': None,
12  'email': None,
13  'name': None,
14  'orcid': None}

◆ name

bin.cusettings.name = subprocess.check_output(cmd).rstrip()

◆ parser

bin.cusettings.parser = argparse.ArgumentParser(description=__doc__, epilog=epilog)

◆ regression_ref_path

string bin.cusettings.regression_ref_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(inspect.getfile(new))))) + '/experiments/regression-references/'

◆ type

bin.cusettings.type