carputils
Doxygen code documentation for the python framework controlling openCARP
Namespaces | Functions
PEERP_subroutines.py File Reference

Namespaces

 carputils.model.protocols.PEERP_subroutines
 

Functions

def carputils.model.protocols.PEERP_subroutines.stimulate_to_find_if_persistent (args, cmd_ref, job, mesh_name, simid, start_S2, stim)
 Stimulates starting at the start_S2 +300 timepoint until +1500 to see if the arrythmia is persistent. More...
 
def carputils.model.protocols.PEERP_subroutines.get_last_act_index (vm)
 Gets the time index of the last ACT. More...
 
def carputils.model.protocols.PEERP_subroutines.pacing_s1_sinus_s2_stim_point (args, cmd, job, mesh_name, simid, sinus, start_S2, start_state_file, stim_point, tsav_state)
 Pace at first from the sinus node and then from the stimulation point after start_S2 ms. More...
 
def carputils.model.protocols.PEERP_subroutines.get_element_from_dat (dat_file, index_node)
 Gets float value for a single point in a dat file. More...
 
def carputils.model.protocols.PEERP_subroutines.get_ring_around_stim_point (args, stim_point_index, mesh_name, stim_point, tag_str)
 Generates a ring of size 2*stim_size < x < 3*stim_size around the stimulation point. More...
 
def carputils.model.protocols.PEERP_subroutines.update_refactory_window_bounds (M2, OptimizationTimePoints time_pts, simid, tsav_state)
 
def carputils.model.protocols.PEERP_subroutines.update_lower_bound_when_refractory (simid, float start_S2, new_offset=60)
 Updates the lower bound which happens when the simulation is refactory (Low M2). More...
 
def carputils.model.protocols.PEERP_subroutines.update_upper_bound_non_refractory (simid, float start_S2, new_offset=60)
 Updates the upper bound of the search window if the previous S2 stimuli did create a depolarizing wave (non-refractory) More...
 
def carputils.model.protocols.PEERP_subroutines.compute_apd (apd_file_name, args, job, steady_state_dir)
 
def carputils.model.protocols.PEERP_subroutines.store_init_arrhythmia_to_file (index_node, job, n_beat, simid, start_S2)
 Saves the current arrhythmia at the index_node to saved.txt and also stores the corresponding .igb file. More...
 
def carputils.model.protocols.PEERP_subroutines.get_closest_tsav_to_act (last_ACT_i, tsav_states)
 Get the closest openCARP save state to the last ACT. More...
 
def carputils.model.protocols.PEERP_subroutines.write_convergence_data (str simid, OptimizationTimePoints time_pts, int iterations, time_taken, M2, M2_mean)
 
def carputils.model.protocols.PEERP_subroutines.create_debug_csv ()
 
def carputils.model.protocols.PEERP_subroutines.define_save_states_for_stim (stim_start, times_array)
 
def carputils.model.protocols.PEERP_subroutines.store_reentry (index_node, job, n_beat, start_S2)
 
def carputils.model.protocols.PEERP_subroutines.store_non_reentry (index_node, job, n_beat, start_S2)
 
def carputils.model.protocols.PEERP_subroutines.get_id_of_stimulation_point (mesh_name, simid, stim_point)