File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3131# Angular diameter distance at the fiducial cosmology, d_a(zeff=0.851)
3232DA_FIDUCIAL = 1627.70
3333DM_FIDUCIAL = DA_FIDUCIAL * (1 + REDSHIFT )
34-
34+ # file from here: https://github.com/des-science/y6kp-bao-methods/blob/main/des-y6-bao/chi2profile_dvdesy6_cosmoplanck18_covcosmolike.csv
35+ DEFAULT_CHI2_FILE = os .path .join (ROOT_dir , 'chi2profile_dvdesy6_cosmoplanck18_covcosmolike.csv' )
3536
3637def setup (options ):
3738 section = option_section
38- # file from here: https://github.com/des-science/y6kp-bao-methods/blob/main/des-y6-bao/chi2profile_dvdesy6_cosmoplanck18_covcosmolike.csv
39- CHI2_file = os .path .join (ROOT_dir ,'chi2profile_dvdesy6_cosmoplanck18_covcosmolike.txt' )
40- chi2 = np .loadtxt (CHI2_file )
39+ CHI2_file = options .get_string (section , "data_file" , default = DEFAULT_CHI2_FILE )
40+ chi2 = np .genfromtxt (CHI2_file , delimiter = ',' )
4141 redshift = options .get_double (section , "redshift" , default = REDSHIFT )
4242 rs_fiducial = options .get_double (section , "rs_fid" , default = RS_FIDUCIAL )
4343 dm_fiducial = options .get_double (section , "dm_fid" , default = DM_FIDUCIAL )
You can’t perform that action at this time.
0 commit comments