open( base_dir + 'data/{}/run{}/fid_values.p'.format(data_type, str(run_idx)), "rb")) values = pickle.load( open( base_dir + 'data/{}/run{}/grid_values.p'.format(data_type, str(run_idx)), "rb")) par_gaps = pickle.load( open(base_dir + 'data/{}/run{}/par_gaps.p'.format(data_type, str(run_idx)), "rb")) fisher_mat = np.loadtxt( base_dir + 'data/{}/run{}/output/fisher_mat_joint_lmin={}_lmax={}_ndet={}_fsky={}.txt' .format(data_type, str(run_idx), lmin, lmax, N_det, fsky)) par_gaps, values, fid, fisher_mat = utils.exclude_parameters_from_fisher( excluded_parameters, par_gaps, values, fid, fisher_mat) plot_param = list(set(fid.keys()) - set(excluded_parameters)) # ============================================ # PLOTTING DEFINITION SKIP TO ~155 # ============================================ # ============================================ # SIZE OF THE PICTURE # ============================================ WIDTH = 246.0 # the number latex spits out # the fraction of the width you'd like the figure to occupy, 0.5 if double # column cause FACTOR = 0.9 fig_width_pt = WIDTH * FACTOR
base_dir = '/home/manzotti/n_eff-dependence-on-prior/n_priors_code/' data_type = 'varying_all' run_idx = 7 lmax = 4499 lmin = 50 N_det = 10 ** 6 # N_phi_l = np.loadtxt('data/noise/wu_cdd_noise_5.txt') fsky = 0.75 # ====== fid = pickle.load(open(base_dir + 'data/{}/run{}/fid_values.p'.format(data_type, str(run_idx)), "rb")) values = pickle.load(open(base_dir + 'data/{}/run{}/grid_values.p'.format(data_type, str(run_idx)), "rb")) par_gaps = pickle.load(open(base_dir + 'data/{}/run{}/par_gaps.p'.format(data_type, str(run_idx)), "rb")) fisher_mat = np.loadtxt( base_dir + 'data/{}/run{}/output/fisher_mat_joint_lmin={}_lmax={}_ndet={}_fsky={}.txt'.format(data_type, str(run_idx), lmin, lmax, N_det, fsky)) par_gaps, values, fid, fisher_mat = utils.exclude_parameters_from_fisher( excluded_parameters, par_gaps, values, fid, fisher_mat) plot_param = list(set(fid.keys()) - set(excluded_parameters)) # ============================================ # PLOTTING DEFINITION SKIP TO ~155 # ============================================ # ============================================ # SIZE OF THE PICTURE # ============================================ WIDTH = 246.0 # the number latex spits out # the fraction of the width you'd like the figure to occupy, 0.5 if double # column cause FACTOR = 0.9 fig_width_pt = WIDTH * FACTOR