Skip to content

Commit

Permalink
Merge pull request #2274 from NNPDF/fix_usercovmats
Browse files Browse the repository at this point in the history
correctly load different types of theory covmats
  • Loading branch information
RoyStegeman authored Feb 7, 2025
2 parents 8896921 + f26f9a2 commit c8f9ee5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions n3fit/src/n3fit/scripts/n3fit_exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ def from_yaml(cls, o, *args, **kwargs):
N3FIT_FIXED_CONFIG['use_thcovmat_in_sampling'] = thconfig.get(
'use_thcovmat_in_sampling', True
)
N3FIT_FIXED_CONFIG['point_prescriptions'] = thconfig.get('point_prescriptions')
N3FIT_FIXED_CONFIG['user_covmat_path'] = thconfig.get('user_covmat_path')

file_content.update(N3FIT_FIXED_CONFIG)
return cls(file_content, *args, **kwargs)

Expand Down
2 changes: 1 addition & 1 deletion validphys2/src/validphys/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ def produce_loaded_theory_covmat(
# Load correct file according to how the thcovmat was generated by vp-setupfit
generic_path = "datacuts_theory_theorycovmatconfig_theory_covmat_custom.csv"
if user_covmat_path is not None:
if point_prescriptions is not None:
if point_prescriptions is not None and point_prescriptions != []:
generic_path = "datacuts_theory_theorycovmatconfig_total_theory_covmat.csv"
else:
generic_path = "datacuts_theory_theorycovmatconfig_user_covmat.csv"
Expand Down

0 comments on commit c8f9ee5

Please sign in to comment.