Skip to content

Commit

Permalink
Add resample_pseudodata key and allow tcm at nlo for alpha_s
Browse files Browse the repository at this point in the history
  • Loading branch information
andreab1997 committed Jul 15, 2024
1 parent 62b88b1 commit 35f0fa2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
3 changes: 2 additions & 1 deletion validphys2/src/validphys/pseudodata.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def make_replica(
sep_mult,
genrep=True,
max_tries=int(1e6),
resample_negative_pseudodata=True,
):
"""Function that takes in a list of :py:class:`validphys.coredata.CommonData`
objects and returns a pseudodata replica accounting for
Expand Down Expand Up @@ -266,7 +267,7 @@ def make_replica(
# Shifting pseudodata
shifted_pseudodata = (all_pseudodata + shifts) * mult_part
# positivity control
if np.all(shifted_pseudodata[full_mask] >= 0):
if np.all(shifted_pseudodata[full_mask] >= 0) or not resample_negative_pseudodata:
return shifted_pseudodata

dfail = " ".join(i.setname for i in groups_dataset_inputs_loaded_cd_with_cuts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,4 +273,23 @@ scale_variations_for:
(0.119): 808
(0.120): 809
(0.121): 810
(0.122): 811
(0.122): 811
- theoryid: 717
variations:
# alpha_s 3pt variations
(0.106): 830
(0.114): 831
(0.115): 832
(0.116): 833
(0.117): 834
(0.118): 717
(0.119): 835
(0.120): 836
(0.121): 837
(0.122): 838
(0.123): 839
(0.124): 840
(0.125): 841
(0.130): 842


0 comments on commit 35f0fa2

Please sign in to comment.