Skip to content

Plotting individual and map of residual intrinsic profile - missing fit location

- **[Error Message]**

WARNING: No existing fit results

- **[Root Cause]**

When plotting either the individual or map of residual intrinsic profiles, the fit results are located and retrieved at l.5536-5544 in ANTARESS_plots_all.py. In those lines, the fit result location is gen_dic['save_data_dir']+'Joined_fits/IntrProf/IntrProf_fit_'+add_txt_path+inst+'_'+vis+'.npz'. This location lacks the specification of which sampler was user to perform the fit (i.e. mcmc, ns, or chi2).

- **[Tentative Fix]**

Modify paths from :

l.5537 :

gen_dic['save_data_dir']+'Joined_fits/IntrProf/IntrProf_fit_'+add_txt_path+inst+'_'+vis+'.npz'

l.5541 :

gen_dic['save_data_dir']+'Joined_fits/IntrProf/IntrProf_fit_'+add_txt_path+inst+'_'+vis+'.npz'

l.5542 :

gen_dic['save_data_dir']+'Joined_fits/IntrProf/Fit_results'

To :

l.5537 :

gen_dic['save_data_dir']+'Joined_fits/IntrProf/'+glob_fit_dic['IntrProf']['fit_mode']+'/IntrProf_fit_'+add_txt_path+inst+'_'+vis+'.npz'

l.5541 :

gen_dic['save_data_dir']+'Joined_fits/IntrProf/'+glob_fit_dic['IntrProf']['fit_mode']+'/IntrProf_fit_'+add_txt_path+inst+'_'+vis+'.npz'

l.5542 :

gen_dic['save_data_dir']+'Joined_fits/IntrProf/'+glob_fit_dic['IntrProf']['fit_mode']+'/Fit_results'