Skip to content

Commit 04a6a89

Browse files
committed
renamed to mismatched, added report page
1 parent 8163b8c commit 04a6a89

File tree

5 files changed

+13
-17
lines changed

5 files changed

+13
-17
lines changed

validphys2/src/validphys/comparefittemplates/comparecard.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ lumi_report:
9999
meta: Null
100100
template: lumi.md
101101

102-
excluded_datasets:
103-
use_cuts: "fromfit"
104-
from_: excluded
102+
mismatched_report:
103+
meta: Null
104+
template: mismatched.md
105105

106106
template: report.md
107107

@@ -123,8 +123,6 @@ dataspecs:
123123
from_: current
124124
speclabel:
125125
from_: current
126-
dataset_inputs:
127-
from_: fit
128126

129127
- theoryid:
130128
from_: reference
@@ -134,8 +132,6 @@ dataspecs:
134132
from_: reference
135133
speclabel:
136134
from_: reference
137-
dataset_inputs:
138-
from_: fit
139135

140136
t0_info:
141137
- use_t0: True
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
% Data-theory comparison for the mismatched dataset {@dataset_name@}
2+
# Absolute
3+
{@plot_fancy@}
4+
# Normalized
5+
{@Datanorm plot_fancy@}

validphys2/src/validphys/comparefittemplates/report_with_excluded.md renamed to validphys2/src/validphys/comparefittemplates/report_mismatched.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ Dataset plots
105105
[Plots for {@dataset_name@}]({@dataset_report report@})
106106
{@endwith@}
107107

108-
Datasets excluded from the fit
108+
Mismatched datasets
109109
--------------------------
110-
{@with matched_excluded_datasets_by_name@}
111-
Plots for {@dataset_name@}{@plot_fancy@}
110+
{@with mismatched_datasets_by_name@}
111+
[Plots for {@dataset_name@}]({@mismatched_report report@})
112112
{@endwith@}
113113

114114
Positivity

validphys2/src/validphys/config.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,8 +1018,7 @@ def produce_matched_datasets_from_dataspecs(self, dataspecs):
10181018
# "dataset_name": i.name,
10191019
# **more_info} for i in dinputs_b[1:3]]
10201020

1021-
def produce_matched_excluded_datasets_by_name(self, dataspecs):
1022-
"""Return excluded datasets, each tagged with the more_info from the dataspecs they came from."""
1021+
def produce_mismatched_datasets_by_name(self, dataspecs):
10231022
"""
10241023
Like produce_matched_datasets_from_dataspecs, but for excluded datasets from a fit comparison.
10251024
Return excluded datasets, each tagged with the more_info from the dataspecs they came from. Set up to work with plot_fancy.
@@ -1072,10 +1071,6 @@ def build_more_info(dataspec):
10721071
return res
10731072

10741073

1075-
1076-
def produce_matched_excluded_datasets_from_dataspecs(self, dataspecs):
1077-
return self.produce_matched_excluded_datasets_by_name(dataspecs)
1078-
10791074
def produce_matched_positivity_from_dataspecs(self, dataspecs):
10801075
"""Like produce_matched_datasets_from_dataspecs but for positivity datasets."""
10811076
self._check_dataspecs_type(dataspecs)

validphys2/src/validphys/scripts/vp_comparefits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def complete_mapping(self):
227227
are_the_same = self.check_identical_theory_cuts_covmat()
228228
if are_the_same:
229229
log.info("Using excluded comparecard: identical theory cuts/covmat detected")
230-
autosettings["template"] = "report_with_excluded.md"
230+
autosettings["template"] = "report_mismatched.md"
231231
args['config_yml'] = comparefittemplates.template_with_excluded_path
232232
return autosettings
233233

0 commit comments

Comments
 (0)