Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nnpdf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emanuele Roberto Nocera
nnpdf
Commits
419e9b02
Commit
419e9b02
authored
3 years ago
by
andreab1997
Browse files
Options
Downloads
Patches
Plain Diff
Fixed test_pseudodata
parent
05d3d619
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!1557
Fix the chi2 computation in the report when there is a thcovmat
,
!1528
Fit with theory covmat with n3fit
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
validphys2/src/validphys/tests/test_pseudodata.py
+33
-4
33 additions, 4 deletions
validphys2/src/validphys/tests/test_pseudodata.py
with
33 additions
and
4 deletions
validphys2/src/validphys/tests/test_pseudodata.py
+
33
−
4
View file @
419e9b02
...
...
@@ -38,8 +38,17 @@ def test_read_pdf_pseudodata():
def
test_recreate_fit_pseudodata
():
fit_pseudodata
=
API
.
recreate_fit_pseudodata
(
fit
=
PSEUDODATA_FIT
)
config
=
{}
config
[
"
use_t0_sampling
"
]
=
False
config
[
"
separate_multiplicative
"
]
=
True
config
[
"
output_path
"
]
=
None
config
[
"
theory_covmat_flag
"
]
=
False
config
[
"
use_user_uncertainties
"
]
=
None
config
[
"
use_scalevar_uncertainties
"
]
=
None
config
[
"
use_thcovmat_in_sampling
"
]
=
None
config
[
"
dataset_t0_predictions
"
]
=
None
fit_pseudodata
=
API
.
recreate_fit_pseudodata
(
fit
=
PSEUDODATA_FIT
,
**
config
)
nrep
=
API
.
num_fitted_replicas
(
fit
=
PSEUDODATA_FIT
)
assert
nrep
==
len
(
fit_pseudodata
)
...
...
@@ -49,7 +58,17 @@ def test_recreate_fit_pseudodata():
def
test_recreate_pdf_pseudodata
():
pdf_pseudodata
=
API
.
recreate_pdf_pseudodata
(
fit
=
PSEUDODATA_FIT
)
config
=
{}
config
[
"
use_t0_sampling
"
]
=
False
config
[
"
separate_multiplicative
"
]
=
True
config
[
"
output_path
"
]
=
None
config
[
"
theory_covmat_flag
"
]
=
False
config
[
"
use_user_uncertainties
"
]
=
None
config
[
"
use_scalevar_uncertainties
"
]
=
None
config
[
"
use_thcovmat_in_sampling
"
]
=
None
config
[
"
dataset_t0_predictions
"
]
=
None
pdf_pseudodata
=
API
.
recreate_pdf_pseudodata
(
fit
=
PSEUDODATA_FIT
,
**
config
)
pdf
=
API
.
pdf
(
pdf
=
PSEUDODATA_FIT
)
# -1 because we ignore replica 0
...
...
@@ -70,8 +89,18 @@ def test_no_savepseudodata():
def
test_read_matches_recreate
():
config
=
{}
config
[
"
use_t0_sampling
"
]
=
False
config
[
"
separate_multiplicative
"
]
=
True
config
[
"
output_path
"
]
=
None
config
[
"
theory_covmat_flag
"
]
=
False
config
[
"
use_user_uncertainties
"
]
=
None
config
[
"
use_scalevar_uncertainties
"
]
=
None
config
[
"
use_thcovmat_in_sampling
"
]
=
None
config
[
"
dataset_t0_predictions
"
]
=
None
reads
=
API
.
read_fit_pseudodata
(
fit
=
PSEUDODATA_FIT
)
recreates
=
API
.
recreate_fit_pseudodata
(
fit
=
PSEUDODATA_FIT
)
recreates
=
API
.
recreate_fit_pseudodata
(
fit
=
PSEUDODATA_FIT
,
**
config
)
for
read
,
recreate
in
zip
(
reads
,
recreates
):
# We ignore the absolute ordering of the dataframes and just check
# that they contain identical elements.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment