Skip to content

Commit e7878b3

Browse files
committed
renamed to mismatched, added report page
1 parent efb5ae4 commit e7878b3

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
@@ -1016,8 +1016,7 @@ def produce_matched_datasets_from_dataspecs(self, dataspecs):
10161016
# "dataset_name": i.name,
10171017
# **more_info} for i in dinputs_b[1:3]]
10181018

1019-
def produce_matched_excluded_datasets_by_name(self, dataspecs):
1020-
"""Return excluded datasets, each tagged with the more_info from the dataspecs they came from."""
1019+
def produce_mismatched_datasets_by_name(self, dataspecs):
10211020
"""
10221021
Like produce_matched_datasets_from_dataspecs, but for excluded datasets from a fit comparison.
10231022
Return excluded datasets, each tagged with the more_info from the dataspecs they came from. Set up to work with plot_fancy.
@@ -1070,10 +1069,6 @@ def build_more_info(dataspec):
10701069
return res
10711070

10721071

1073-
1074-
def produce_matched_excluded_datasets_from_dataspecs(self, dataspecs):
1075-
return self.produce_matched_excluded_datasets_by_name(dataspecs)
1076-
10771072
def produce_matched_positivity_from_dataspecs(self, dataspecs):
10781073
"""Like produce_matched_datasets_from_dataspecs but for positivity datasets."""
10791074
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
@@ -233,7 +233,7 @@ def complete_mapping(self):
233233
are_the_same = self.check_identical_theory_cuts_covmat()
234234
if are_the_same:
235235
log.info("Using excluded comparecard: identical theory cuts/covmat detected")
236-
autosettings["template"] = "report_with_excluded.md"
236+
autosettings["template"] = "report_mismatched.md"
237237
args['config_yml'] = comparefittemplates.template_with_excluded_path
238238
return autosettings
239239

0 commit comments

Comments
 (0)