5 def run_task(window_type,bins_type,b1,b2) :
9 elif bins_type==
"log" :
12 print "Wrong binning scheme "+bins_type
14 strout=
"#Cosmological parameters\n" 15 strout+=
"omega_m= 0.3\n" 16 strout+=
"omega_l= 0.7\n" 17 strout+=
"omega_b= 0.0\n" 24 strout+=
"#Radial resolution\n" 27 strout+=
"#Maximum multipole\n" 28 strout+=
"l_max= 30000\n" 30 strout+=
"#Behavioural flags (include number counts? include lensing shear? include CMB lensing?)\n" 32 strout+=
"has_nc_dens= 1\n" 33 strout+=
"has_nc_rsd= 0\n" 34 strout+=
"has_nc_lensing= 0\n" 35 strout+=
"do_shear= 1\n" 36 strout+=
"do_cmblens= 1\n" 38 strout+=
"#Angular correlation function\n" 39 strout+=
"do_w_theta= 1\n" 40 strout+=
"use_logbin= %d\n"%do_logbin
41 strout+=
"theta_min= 0\n" 42 strout+=
"theta_max= 10.\n" 43 strout+=
"n_bins_theta= 15\n" 44 strout+=
"n_bins_decade= 5\n" 46 strout+=
"#File names (window function, bias, magnification bias, power spectrum)\n" 47 strout+=
"window_1_fname= curves/bin%d_"%b1+window_type+
".txt\n" 48 strout+=
"window_2_fname= curves/bin%d_"%b2+window_type+
".txt\n" 49 strout+=
"bias_fname= curves/bias.txt\n" 50 strout+=
"sbias_fname= nothing\n" 51 strout+=
"pk_fname= BBKS\n" 53 strout+=
"#Output prefix\n" 54 strout+=
"prefix_out= output/run_b%d"%b1+
"b%d"%b2+window_type+
"_"+bins_type
56 parname=
"param_limberjack_b%d"%b1+
"b%d"%b2+window_type+
"_"+bins_type+
".ini" 61 os.system(
"./limberjack "+parname)
def run_task(window_type, bins_type, b1, b2)