|
carputils
Doxygen code documentation for the python framework controlling openCARP
|
Functions | |
| def | create_dir (directory) |
| Creates a directory for the defined path and checks for errors. More... | |
| def | extract_last_ms_from_igb (job, nodes_to_check_str, simid, last_ms, igb_file='/vm.igb', out_file="/out") |
| Uses igbextract to extract nodes from an igb file. More... | |
| def | get_cmd_for_one_stimulus (args, start, stimulation_node, duration=2, npls=1, bcl=None) |
| Initializes a cmd prompt to create a stimulus for a given startpoint and duration at a given stimulation node. More... | |
| def carputils.model.helper_methods.create_dir | ( | directory | ) |
Creates a directory for the defined path and checks for errors.
| directory | :return: |
| def carputils.model.helper_methods.extract_last_ms_from_igb | ( | job, | |
| nodes_to_check_str, | |||
| simid, | |||
| last_ms, | |||
igb_file = '/vm.igb', |
|||
out_file = "/out" |
|||
| ) |
Uses igbextract to extract nodes from an igb file.
| job | Job object to execute commands. |
| nodes_to_check_str | |
| simid | The current working directory for the simulation. |
| last_ms | Sets the start to the last x ms. |
| igb_file | IGB input file. Ends with .igb. |
| out_file | Output file from the extraction. :return: |
| def carputils.model.helper_methods.get_cmd_for_one_stimulus | ( | args, | |
| start, | |||
| stimulation_node, | |||
duration = 2, |
|||
npls = 1, |
|||
bcl = None |
|||
| ) |
Initializes a cmd prompt to create a stimulus for a given startpoint and duration at a given stimulation node.
| args | Has to contain the stimulus strength (args.strength) in mV and stimulation size (args.size) |
| start | Start time of the stimulus |
| stimulation_node | 3D coordinates of the stimulation node |
| duration | Duration of the stimulus in ms |
| npls | Number of pulses per stimulus |
| bcl | Basic cycle length in ms. If not set the default in openCARP is (t_end-start) :return: |