-
Notifications
You must be signed in to change notification settings - Fork 0
kfactor maintenance and documentation
#161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
614bd43
first understanding
giacomomagni 664a798
init some refactoring
giacomomagni 8305507
make test working
giacomomagni 93131b1
try to make it working again
giacomomagni 4dfd7a8
try to make bench passing
giacomomagni 746bc4d
remove pdb
giacomomagni 4d97c72
restore mask
giacomomagni fb5b9f8
more work
giacomomagni 16d8279
more fixes
giacomomagni a4626f2
remove pdb
giacomomagni c9d4c43
add some docs and fix names
giacomomagni 8dc15f0
some cleaning in scale variations
giacomomagni 3f94e4c
pre-commit
giacomomagni 64e252d
update pineappl version
giacomomagni 770ce81
Fix pre-commit, fix kfactor docs
felixhekhorn 40124ea
Update scale_subgrid
felixhekhorn 3163be4
first round of review
giacomomagni 7d04323
second round of updates
giacomomagni 55e015d
Rework kfactors.to_list
felixhekhorn 82e4657
Drop type hints from kfactors.to_list
felixhekhorn 7ea62d7
Update src/pineko/cli/kfactor.py
giacomomagni 5a31fc0
more fixes from review suggestions
giacomomagni 53f939a
Update docs/source/theory/kfactors.rst
giacomomagni b62249b
make kfactor names more uniform
giacomomagni 4665cad
do_it -> apply_to_grid
giacomomagni 21572f8
clarification on PTO_TO_UPDATE
giacomomagni 25be7c4
drop target_folder=None
giacomomagni 3d067f0
more typos here and there
giacomomagni 9821965
Merge branch 'main' into issue_160
giacomomagni 0a27fbe
run poetry lock
giacomomagni 4ce5921
restore poetry lock
giacomomagni c87c39e
Merge branch 'main' into issue_160
giacomomagni 41a4649
make kfactors working again with nnpdf settings
giacomomagni 9fab164
exterminate yamldb
giacomomagni 3aaa411
Merge branch 'main' into issue_160
giacomomagni a314490
update poetry lock
giacomomagni 02940a3
Merge branch 'main' into issue_160
giacomomagni 011ec6c
fix benchmarks
giacomomagni d33d2f9
other fix to benchmarks
giacomomagni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,24 @@ | ||
| K-Factors | ||
| Kfactors | ||
| ========= | ||
|
|
||
| Another useful tool that `pineko` includes is ``pineko kfactor`` which allows the embedding of a kfactor | ||
| as a proper order in a grid. The usage is the following:: | ||
|
|
||
| pineko kfactor GRIDS_FOLDER KFACTOR_FOLDER YAMLDB_PATH TARGET_FOLDER MAX_AS ORDER_EXISTS | ||
| pineko kfactor THEORY_ID DATASET KFACTOR_FOLDER TARGET_FOLDER PTO_TO_UPDATE [--order_exists] | ||
|
|
||
| where ``GRIDS_FOLDER`` is the folder containing the grids to update, ``KFACTOR_FOLDER`` is the folder | ||
| containing the kfactor files and ``YAMLDB_PATH`` is the path to the yamldb file of the requested dataset. | ||
| The other inputs have already been described in the previous section. | ||
| where: | ||
|
|
||
| - ``THEORY_ID`` is the theory ID of the source grid, | ||
| - ``DATASET`` is the dataset name, | ||
| - ``KFACTOR_FOLDER`` is the folder containing the kfactor files, | ||
| - ``TARGET_FOLDER`` is the folder where the new updated grids is going to be saved, | ||
| - ``PTO_TO_UPDATE`` is the :math:`\alpha_s` perturbative order to update or create, | ||
| with the convention that ``LO=1``, ``NLO=2`` and so on, irrespectively to the powers of :math:`\alpha_s`. | ||
| Note also that this differs from the conventions by the NNPDF collaboration, | ||
| but it is consistent with the pineappl convention. | ||
| - ``--order_exists`` is a flag used to apply the kfactor to the specified perturbative order, insead of the next. | ||
|
|
||
| Note that only pure QCD kfactors are taken into account. | ||
| For example to add the NNLO in a grid containing at most NLO one has to select ``PTO_TO_UPDATE=2``; | ||
| nn the other hand to reweight the NNLO present in a grid with a kfactor, | ||
| one should do ``PTO_TO_UPDATE=2 --order_exists``. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.