Skip to content

Commit

Permalink
fix loading from covmat from file if all datapoints cut
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyStegeman committed May 24, 2024
1 parent 6d6e80e commit 353ef80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion validphys2/src/validphys/theorycovariance/construction.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,10 @@ def fromfile_covmat(covmatpath, procs_data, procs_index):
dslist = []
for group in procs_data:
for ds in group.datasets:
dslist.append(ds.name)
# if the name is not in procs_index (because all points are cut)
# don't include it in dslist
if ds.name in procs_index.get_level_values('dataset').tolist():
dslist.append(ds.name)
# Datasets in filecovmat in exp covmat order
shortlist = []
for ds in dslist:
Expand Down

0 comments on commit 353ef80

Please sign in to comment.