|
carputils
Doxygen code documentation for the python framework controlling openCARP
|
Classes | |
| class | SweepSetup |
| class | LeadfieldComputationOptions |
Functions | |
| def | load_json (file_name) |
| def | print_subdict (key, val, shift_num=0) |
| def | print_settings_config (config, config_header=False) |
| def | save_json (jdata, file_name, indent=2, overwrite=True) |
| def | write_vtx_file (filename, vtx_list) |
| def | write_carp_par_file (filename, opts, start_num=1) |
| def | valid_keys (jsec, key_lst) |
| def | get_init_dir (init_dir, up) |
| Retrieve/create path to initialization directory. More... | |
| def | is_mutable (sec, ignore) |
| def | vel2List (CVs, G) |
| def | get_bath_labels (cnf, pop=False) |
| def | ep_secs_to_carp (cnf, fncs, use_abs_paths=True) |
| def | ep_sec_to_carp (tags, key, ep, idx, use_abs_paths=True) |
| def | G_secs_to_carp (cnf, fncs, ek=False, dream=False) |
| def | G_sec_to_carp (tags, key, G, idx, cv_ref=None) |
| def | CV_secs_to_carp (cnf, fncs) |
| def | CV_sec_to_carp (cv, idx, key) |
| def | gen_physics (ExtraTags=None, IntraTags=None, EikonalTags=None, MechTags=None, FluidTags=None) |
| def | domain_to_phys_region (ptype, name, domain, idx) |
| def | elec_sec_to_carp (job, elecs, idx, act_lst, *model_name=None, model_format=None, ucc_file=None, stim_filename=None, dry=False) |
| def | get_ground_stimulus (lfsetup, ground_vtx_file, stim_num, dry=False) |
| def | stim_sec_to_carp (job, stimuli, lfsetup, rmode, output_dir, **kwargs) |
| def | get_elec_point (pt, pt_idx, stm) |
| def | mgquery_idx_call (job, spec_line, stim_name, model_name, model_format, ucc_file, dry=False) |
| def | build_stim_geom (job, elec, idx, stm_name, *model_name=None, model_format=None, ucc_file=None, stim_filename=None, dry=False) |
| def | ek_lat_detect (idx, threshold=-10, **kwargs) |
| def | lat (idx, ID, threshold=-10, measurand=0, mode=0, detect_all=0, method=1) |
| def | sentinel (idx, start, window) |
| def | propagation_mode (mode) |
| def | setup_mesh (meshname, use_split=True, split_file=None, tags_file=None) |
| Set up mesh command including the use of a split file as well as an alternative element tag vector. More... | |
| def | intra_mesh_ext (rmode) |
| def | setup_tissue (cnf, fncs, rmode, **kwargs) |
| def | check_config (cnf, fncs) |
| def | add_slv_settings (slv) |
| def | setup_timings (plan) |
| def | check_initial_state_vectors (funcs, verbose) |
| def | update_exp_desc (up_flag, exp_file, exp, indent=2) |
| def | generate_split_file (job, plan, mesh_name, force_recreation=False) |
| def | plan2carp (job, plan_file, meshname, rmode) |
| def | check_stim_protocol (config, check_type='stimulus') |
Variables | |
| bool | SA_AVAILABLE = False |
| bool | UQ_AVAILABLE = False |
| string | CONFIGURATIONS = 'config' |
| string | CONFIGURATION_FUNC = 'func' |
| string | CONFIGURATION_TAGS = 'tags' |
| string | FUNCTIONS = 'functions' |
| string | FUNCTION_CV = 'CV' |
| string | FUNCTION_CV_CVMEAS = 'CVmeas' |
| string | FUNCTION_CV_CVREF = 'CVref' |
| string | FUNCTION_CV_COND = 'G' |
| string | FUNCTION_EP = 'EP' |
| string | FUNCTION_EP_MODEL = 'model' |
| string | FUNCTION_EP_MODELPAR = 'modelpar' |
| string | FUNCTION_EP_BCL = 'bcl' |
| string | FUNCTION_EP_INIT = 'init' |
| string | FUNCTION_EP_CYCLES = 'cycles' |
| string | FUNCTION_EP_PLUGINS = 'plugins' |
| string | FUNCTION_EP_PLUGPARS = 'plugin-par' |
| string | FUNCTION_EP_APDRESFILE = 'apdres' |
| string | FUNCTION_EP_APDRESPRTCL = 'apdresptcl' |
| tuple | FUNCTION_CV_COND_ACTIVE_NAMES = ('gil', 'git', 'gin', 'gel', 'get', 'gen') |
| string | FUNCTION_CV_COND_PASSIVE_NAMES = 'gbath' |
| tuple | FUNCTION_CV_VELOCITY_NAMES = ('vf', 'vs', 'vn') |
| string | ELECTRODES = 'electrodes' |
| string | ELECTRODE_TYPE = 'type' |
| string | SIMULATION = 'simulation' |
| string | STIMULATION_STIMULI = 'stimuli' |
| string | STIMULATION_TYPE = 'type' |
| string | STIMULATION_ELECTRODE = 'electrode' |
| string | STIMULATION_PROTOCOL = 'protocol' |
| string | STIMULATION_STRENGTH = 'strength' |
| dictionary | STIMULATION_TYPE_MAP |
| string | SPLIT = 'split' |
| string | SPLIT_OPSTR = 'opstr' |
| string | SPLIT_APPLY = 'apply' |
| string | LFSETUP = 'lfsetup' |
| string | SOLVER = 'solver' |
| string | SOLVER_DT = 'dt' |
| string | SOLVER_DX = 'dx' |
| string | SOLVER_PARABSOLVE = 'ts' |
| string | SOLVER_MASSLUMPING = 'lumping' |
| string | SOLVER_OPSPLIT = 'opsplit' |
| string | SOLVER_CGTOL = 'stol' |
| string | SOLVER_BEQM = 'beqm' |
| string | SOLVER_FIXGE = 'fixge' |
| string | SOLVER_SRC_MODEL = 'sourceModel' |
| string | PROTOCOLS = 'protocols' |
| string | PROTOCOLS_BCL = 'bcl' |
| string | PROTOCOLS_CYCLES = 'cycles' |
| string | PROTOCOLS_ELECTRODES = 'electrodes' |
| string | PROTOCOLS_PROPAGATION = 'propagation' |
| string | PROTOCOLS_LATFILE = 'lat' |
| string | PROTOCOLS_PREPACE = 'prepace' |
| string | PROTOCOLS_RESTART = 'restart' |
| string | PROTOCOLS_RELTIMINGS = 'rel-timings' |
| string | PROTOCOLS_APD_RESTITUTION = 'APD-restitution' |
| string | PROTOCOLS_APD_RESTITUTION_TYPE = 'type' |
| string | PROTOCOLS_APD_RESTITUTION_BCL = 'bcl' |
| string | PROTOCOLS_APD_RESTITUTION_CI0 = 'CI0' |
| string | PROTOCOLS_APD_RESTITUTION_CI1 = 'CI1' |
| string | PROTOCOLS_APD_RESTITUTION_PPBEATS = 'pp_beats' |
| string | PROTOCOLS_APD_RESTITUTION_PMBEATS = 'pm_beats' |
| string | PROTOCOLS_APD_RESTITUTION_PMDEC = 'pm_dec' |
| list | SAMPLING_METHODS = ['file'] |
| def carputils.forcepss.j2carp.add_slv_settings | ( | slv | ) |
| def carputils.forcepss.j2carp.build_stim_geom | ( | job, | |
| elec, | |||
| idx, | |||
| stm_name, | |||
| * | model_name = None, |
||
model_format = None, |
|||
ucc_file = None, |
|||
stim_filename = None, |
|||
dry = False |
|||
| ) |
| def carputils.forcepss.j2carp.check_config | ( | cnf, | |
| fncs | |||
| ) |
| def carputils.forcepss.j2carp.check_initial_state_vectors | ( | funcs, | |
| verbose | |||
| ) |
| def carputils.forcepss.j2carp.check_stim_protocol | ( | config, | |
check_type = 'stimulus' |
|||
| ) |
| def carputils.forcepss.j2carp.CV_sec_to_carp | ( | cv, | |
| idx, | |||
| key | |||
| ) |
| def carputils.forcepss.j2carp.CV_secs_to_carp | ( | cnf, | |
| fncs | |||
| ) |
| def carputils.forcepss.j2carp.domain_to_phys_region | ( | ptype, | |
| name, | |||
| domain, | |||
| idx | |||
| ) |
| def carputils.forcepss.j2carp.ek_lat_detect | ( | idx, | |
threshold = -10, |
|||
| ** | kwargs | ||
| ) |
| def carputils.forcepss.j2carp.elec_sec_to_carp | ( | job, | |
| elecs, | |||
| idx, | |||
| act_lst, | |||
| * | model_name = None, |
||
model_format = None, |
|||
ucc_file = None, |
|||
stim_filename = None, |
|||
dry = False |
|||
| ) |
| def carputils.forcepss.j2carp.ep_sec_to_carp | ( | tags, | |
| key, | |||
| ep, | |||
| idx, | |||
use_abs_paths = True |
|||
| ) |
| def carputils.forcepss.j2carp.ep_secs_to_carp | ( | cnf, | |
| fncs, | |||
use_abs_paths = True |
|||
| ) |
| def carputils.forcepss.j2carp.G_sec_to_carp | ( | tags, | |
| key, | |||
| G, | |||
| idx, | |||
cv_ref = None |
|||
| ) |
| def carputils.forcepss.j2carp.G_secs_to_carp | ( | cnf, | |
| fncs, | |||
ek = False, |
|||
dream = False |
|||
| ) |
| def carputils.forcepss.j2carp.gen_physics | ( | ExtraTags = None, |
|
IntraTags = None, |
|||
EikonalTags = None, |
|||
MechTags = None, |
|||
FluidTags = None |
|||
| ) |
| def carputils.forcepss.j2carp.generate_split_file | ( | job, | |
| plan, | |||
| mesh_name, | |||
force_recreation = False |
|||
| ) |
| def carputils.forcepss.j2carp.get_bath_labels | ( | cnf, | |
pop = False |
|||
| ) |
| def carputils.forcepss.j2carp.get_elec_point | ( | pt, | |
| pt_idx, | |||
| stm | |||
| ) |
| def carputils.forcepss.j2carp.get_ground_stimulus | ( | lfsetup, | |
| ground_vtx_file, | |||
| stim_num, | |||
dry = False |
|||
| ) |
| def carputils.forcepss.j2carp.get_init_dir | ( | init_dir, | |
| up | |||
| ) |
Retrieve/create path to initialization directory.
| init_dir | |
| up |
| def carputils.forcepss.j2carp.intra_mesh_ext | ( | rmode | ) |
| def carputils.forcepss.j2carp.is_mutable | ( | sec, | |
| ignore | |||
| ) |
| def carputils.forcepss.j2carp.lat | ( | idx, | |
| ID, | |||
threshold = -10, |
|||
measurand = 0, |
|||
mode = 0, |
|||
detect_all = 0, |
|||
method = 1 |
|||
| ) |
| def carputils.forcepss.j2carp.load_json | ( | file_name | ) |
| def carputils.forcepss.j2carp.mgquery_idx_call | ( | job, | |
| spec_line, | |||
| stim_name, | |||
| model_name, | |||
| model_format, | |||
| ucc_file, | |||
dry = False |
|||
| ) |
| def carputils.forcepss.j2carp.plan2carp | ( | job, | |
| plan_file, | |||
| meshname, | |||
| rmode | |||
| ) |
| def carputils.forcepss.j2carp.print_settings_config | ( | config, | |
config_header = False |
|||
| ) |
| def carputils.forcepss.j2carp.print_subdict | ( | key, | |
| val, | |||
shift_num = 0 |
|||
| ) |
| def carputils.forcepss.j2carp.propagation_mode | ( | mode | ) |
| def carputils.forcepss.j2carp.save_json | ( | jdata, | |
| file_name, | |||
indent = 2, |
|||
overwrite = True |
|||
| ) |
| def carputils.forcepss.j2carp.sentinel | ( | idx, | |
| start, | |||
| window | |||
| ) |
| def carputils.forcepss.j2carp.setup_mesh | ( | meshname, | |
use_split = True, |
|||
split_file = None, |
|||
tags_file = None |
|||
| ) |
Set up mesh command including the use of a split file as well as an alternative element tag vector.
| meshname | |
| use_split | |
| split_file | |
| tags_file |
| def carputils.forcepss.j2carp.setup_timings | ( | plan | ) |
| def carputils.forcepss.j2carp.setup_tissue | ( | cnf, | |
| fncs, | |||
| rmode, | |||
| ** | kwargs | ||
| ) |
| def carputils.forcepss.j2carp.stim_sec_to_carp | ( | job, | |
| stimuli, | |||
| lfsetup, | |||
| rmode, | |||
| output_dir, | |||
| ** | kwargs | ||
| ) |
| def carputils.forcepss.j2carp.update_exp_desc | ( | up_flag, | |
| exp_file, | |||
| exp, | |||
indent = 2 |
|||
| ) |
| def carputils.forcepss.j2carp.valid_keys | ( | jsec, | |
| key_lst | |||
| ) |
| def carputils.forcepss.j2carp.vel2List | ( | CVs, | |
| G | |||
| ) |
| def carputils.forcepss.j2carp.write_carp_par_file | ( | filename, | |
| opts, | |||
start_num = 1 |
|||
| ) |
| def carputils.forcepss.j2carp.write_vtx_file | ( | filename, | |
| vtx_list | |||
| ) |
| string carputils.forcepss.j2carp.CONFIGURATION_FUNC = 'func' |
| string carputils.forcepss.j2carp.CONFIGURATION_TAGS = 'tags' |
| string carputils.forcepss.j2carp.CONFIGURATIONS = 'config' |
| string carputils.forcepss.j2carp.ELECTRODE_TYPE = 'type' |
| string carputils.forcepss.j2carp.ELECTRODES = 'electrodes' |
| string carputils.forcepss.j2carp.FUNCTION_CV = 'CV' |
| string carputils.forcepss.j2carp.FUNCTION_CV_COND = 'G' |
| tuple carputils.forcepss.j2carp.FUNCTION_CV_COND_ACTIVE_NAMES = ('gil', 'git', 'gin', 'gel', 'get', 'gen') |
| string carputils.forcepss.j2carp.FUNCTION_CV_COND_PASSIVE_NAMES = 'gbath' |
| string carputils.forcepss.j2carp.FUNCTION_CV_CVMEAS = 'CVmeas' |
| string carputils.forcepss.j2carp.FUNCTION_CV_CVREF = 'CVref' |
| tuple carputils.forcepss.j2carp.FUNCTION_CV_VELOCITY_NAMES = ('vf', 'vs', 'vn') |
| string carputils.forcepss.j2carp.FUNCTION_EP = 'EP' |
| string carputils.forcepss.j2carp.FUNCTION_EP_APDRESFILE = 'apdres' |
| string carputils.forcepss.j2carp.FUNCTION_EP_APDRESPRTCL = 'apdresptcl' |
| string carputils.forcepss.j2carp.FUNCTION_EP_BCL = 'bcl' |
| string carputils.forcepss.j2carp.FUNCTION_EP_CYCLES = 'cycles' |
| string carputils.forcepss.j2carp.FUNCTION_EP_INIT = 'init' |
| string carputils.forcepss.j2carp.FUNCTION_EP_MODEL = 'model' |
| string carputils.forcepss.j2carp.FUNCTION_EP_MODELPAR = 'modelpar' |
| string carputils.forcepss.j2carp.FUNCTION_EP_PLUGINS = 'plugins' |
| string carputils.forcepss.j2carp.FUNCTION_EP_PLUGPARS = 'plugin-par' |
| string carputils.forcepss.j2carp.FUNCTIONS = 'functions' |
| string carputils.forcepss.j2carp.LFSETUP = 'lfsetup' |
| string carputils.forcepss.j2carp.PROTOCOLS = 'protocols' |
| string carputils.forcepss.j2carp.PROTOCOLS_APD_RESTITUTION = 'APD-restitution' |
| string carputils.forcepss.j2carp.PROTOCOLS_APD_RESTITUTION_BCL = 'bcl' |
| string carputils.forcepss.j2carp.PROTOCOLS_APD_RESTITUTION_CI0 = 'CI0' |
| string carputils.forcepss.j2carp.PROTOCOLS_APD_RESTITUTION_CI1 = 'CI1' |
| string carputils.forcepss.j2carp.PROTOCOLS_APD_RESTITUTION_PMBEATS = 'pm_beats' |
| string carputils.forcepss.j2carp.PROTOCOLS_APD_RESTITUTION_PMDEC = 'pm_dec' |
| string carputils.forcepss.j2carp.PROTOCOLS_APD_RESTITUTION_PPBEATS = 'pp_beats' |
| string carputils.forcepss.j2carp.PROTOCOLS_APD_RESTITUTION_TYPE = 'type' |
| string carputils.forcepss.j2carp.PROTOCOLS_BCL = 'bcl' |
| string carputils.forcepss.j2carp.PROTOCOLS_CYCLES = 'cycles' |
| string carputils.forcepss.j2carp.PROTOCOLS_ELECTRODES = 'electrodes' |
| string carputils.forcepss.j2carp.PROTOCOLS_LATFILE = 'lat' |
| string carputils.forcepss.j2carp.PROTOCOLS_PREPACE = 'prepace' |
| string carputils.forcepss.j2carp.PROTOCOLS_PROPAGATION = 'propagation' |
| string carputils.forcepss.j2carp.PROTOCOLS_RELTIMINGS = 'rel-timings' |
| string carputils.forcepss.j2carp.PROTOCOLS_RESTART = 'restart' |
| bool carputils.forcepss.j2carp.SA_AVAILABLE = False |
| list carputils.forcepss.j2carp.SAMPLING_METHODS = ['file'] |
| string carputils.forcepss.j2carp.SIMULATION = 'simulation' |
| string carputils.forcepss.j2carp.SOLVER = 'solver' |
| string carputils.forcepss.j2carp.SOLVER_BEQM = 'beqm' |
| string carputils.forcepss.j2carp.SOLVER_CGTOL = 'stol' |
| string carputils.forcepss.j2carp.SOLVER_DT = 'dt' |
| string carputils.forcepss.j2carp.SOLVER_DX = 'dx' |
| string carputils.forcepss.j2carp.SOLVER_FIXGE = 'fixge' |
| string carputils.forcepss.j2carp.SOLVER_MASSLUMPING = 'lumping' |
| string carputils.forcepss.j2carp.SOLVER_OPSPLIT = 'opsplit' |
| string carputils.forcepss.j2carp.SOLVER_PARABSOLVE = 'ts' |
| string carputils.forcepss.j2carp.SOLVER_SRC_MODEL = 'sourceModel' |
| string carputils.forcepss.j2carp.SPLIT = 'split' |
| string carputils.forcepss.j2carp.SPLIT_APPLY = 'apply' |
| string carputils.forcepss.j2carp.SPLIT_OPSTR = 'opstr' |
| string carputils.forcepss.j2carp.STIMULATION_ELECTRODE = 'electrode' |
| string carputils.forcepss.j2carp.STIMULATION_PROTOCOL = 'protocol' |
| string carputils.forcepss.j2carp.STIMULATION_STIMULI = 'stimuli' |
| string carputils.forcepss.j2carp.STIMULATION_STRENGTH = 'strength' |
| string carputils.forcepss.j2carp.STIMULATION_TYPE = 'type' |
| dictionary carputils.forcepss.j2carp.STIMULATION_TYPE_MAP |
| bool carputils.forcepss.j2carp.UQ_AVAILABLE = False |