-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_data.py
29 lines (20 loc) · 1.6 KB
/
get_data.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#%%
# IMPORT FUNCTIONS
from important_functions import get_local_sensitivity, get_rrc_data, get_ind, get_robust_data
save_data_to = './data/'
get_data_from = './data/'
# Sensitivity data for baseline Grandi Model
#get_local_sensitivity(best_data_path={'i_cal_pca_multiplier':1, 'i_ks_multiplier':1, 'i_kr_multiplier':1, 'i_nal_multiplier':0, 'i_na_multiplier':1, 'i_to_multiplier':1, 'i_k1_multiplier':1, 'i_NCX_multiplier':1, 'i_nak_multiplier':1}, save_to = save_data_to+'sens_grandi.csv.bz2', model = 'grandi_flat.mmt', stim = 1, length = 5, multiprocessing='yes')
# Sensitivity data for optimized ToR-ORd Model
# get_local_sensitivity(best_data_path=get_data_from+'best_data.csv.bz2', save_to = save_data_to+'sens_opt_nomult.csv.bz2', multiprocessing='yes')
# Sensitivity data for baseline ToR-ORd Model
#get_local_sensitivity(best_data_path=get_ind(), save_to = save_data_to+'sens_baseline.csv.bz2', multiprocessing='yes')
# RRC data for baseline ToR-ORd Model and all best data models
#get_rrc_data(best_data_path=get_data_from+'best_data.csv.bz2', save_to = save_data_to+'rrc_data.csv.bz2', multiprocessing='yes')
#Robust data for all best data models - ICaL
get_robust_data(multiprocessing='yes')
#Robust data for all best data models - IKr & IKb
get_robust_data(conductance = 'i_kr_multiplier', values = [1, 0.8, 0.6, 0.4, 0.2, 0], i_kb = 0.6, multiprocessing='yes', save_to = './data/robust_data_ikrkb.csv.bz2')
#Robust data for all best data models - IKr
get_robust_data(conductance = 'i_kr_multiplier', values = [1, 0.8, 0.6, 0.4, 0.2, 0], multiprocessing='yes', save_to = './data/robust_data_ikr.csv.bz2')
# %%