Skip to content

Scale Variations Expanded#91

Merged
giacomomagni merged 84 commits into
developfrom
feature/Scale_variation_B
Mar 8, 2022
Merged

Scale Variations Expanded#91
giacomomagni merged 84 commits into
developfrom
feature/Scale_variation_B

Conversation

@giacomomagni
Copy link
Copy Markdown
Collaborator

@giacomomagni giacomomagni commented Feb 7, 2022

  • Move scale variation to a subpackage
  • implementation of scheme B (ModSV=expanded)
  • Generalise quad ker
  • Generalise Operator class (try parallel integration)
  • Benchmark: Pegasus/Lha ModSV=exponentiated
  • Benchmark: Apfel ModSV=exponentiated. Bug found and fixed.

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 7, 2022

Codecov Report

Merging #91 (1456443) into develop (3b843e3) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           develop       #91    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           32        35     +3     
  Lines         2429      2556   +127     
==========================================
+ Hits          2429      2556   +127     
Flag Coverage Δ
isobench 54.94% <63.40%> (-12.07%) ⬇️
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/eko/matching_conditions/__init__.py 100.00% <ø> (ø)
src/eko/evolution_operator/__init__.py 100.00% <100.00%> (ø)
src/eko/evolution_operator/grid.py 100.00% <100.00%> (ø)
src/eko/interpolation.py 100.00% <100.00%> (ø)
src/eko/kernels/singlet.py 100.00% <100.00%> (ø)
...eko/matching_conditions/operator_matrix_element.py 100.00% <100.00%> (ø)
src/eko/mellin.py 100.00% <100.00%> (ø)
src/eko/msbar_masses.py 100.00% <100.00%> (ø)
src/eko/scale_variations/__init__.py 100.00% <100.00%> (ø)
src/eko/scale_variations/expanded.py 100.00% <100.00%> (ø)
... and 3 more

@giacomomagni giacomomagni added enhancement New feature or request physics new physics features labels Feb 7, 2022
@giacomomagni giacomomagni self-assigned this Feb 7, 2022
Comment thread benchmarks/pegasus_bench.py Outdated
@alecandido
Copy link
Copy Markdown
Collaborator

alecandido commented Feb 7, 2022

Hi @giacomomagni, I like a lot the way you're structuring it :D

About modules naming: since it's not ambiguous inside scale_variations subpackage, I'd call scheme_A.py just a.py, keeping the docstring inside the module telling that is scheme A implementation. It would look like

import scale_variations.a

that is not that bad.

On the other hand, it is always true that explicit is better than implicit, so if you don't like you can also keep scheme_a, but at least make it lowercase to respect conventions :)

P.S.: same thing goes for B, of course

@giacomomagni
Copy link
Copy Markdown
Collaborator Author

Hi @giacomomagni, I like a lot the way you're structuring it :D

About modules naming: since it's not ambiguous inside scale_variations subpackage, I'd call scheme_A.py just a.py, keeping the docstring inside the module telling that is scheme A implementation. It would look like

import scale_variations.a

that is not that bad.

On the other hand, it is always true that explicit is better than implicit, so if you don't like you can also keep scheme_a, but at least make it lowercase to respect conventions :)

P.S.: same thing goes for B, of course

I agree, I like the first option as well!

Comment thread benchmarks/apfel_bench.py Outdated
Comment thread src/eko/evolution_operator/grid.py Outdated
Comment thread doc/source/theory/pQCD.rst Outdated
Comment thread src/eko/mellin.py Outdated
Comment thread pyproject.toml
Comment thread doc/source/code/Utilities.rst Outdated
Comment thread doc/source/code/Utilities.rst Outdated
Comment thread doc/source/code/Utilities.rst Outdated

Let us consider an example to better illustrate how it works.
Imagine to have a boundary condition ``q2_ref=64, nf_ref=3`` and would like to evolve your object (|PDF| or :math:`a_s`) to a lower
scale (say ``Q=7``) but giving different number of active flavors to the final state and having set the heavy quarks mass thresholds
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's stick to our default choice, that is we speak in Q2 and not Q (you can do Q2=7**2 ...) - and actually why don't you go for math: - we speak about math here ...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it was more clear to follow the same syntax we use in the code since we are referring directly to our implementation. I have fixed the squared, which were not consistent.

Comment thread doc/source/code/Utilities.rst Outdated
Comment thread doc/source/code/Utilities.rst Outdated
Comment thread doc/source/code/Utilities.rst Outdated
Comment thread doc/source/code/Utilities.rst Outdated
Comment thread doc/source/code/Utilities.rst Outdated
Comment thread doc/source/code/Utilities.rst Outdated
Comment thread doc/source/theory/pQCD.rst
Comment thread doc/source/theory/pQCD.rst Outdated
@alecandido
Copy link
Copy Markdown
Collaborator

I completed my review, there are only minor fixes requested, mainly in the docs.

Comment thread doc/source/theory/pQCD.rst Outdated
Comment thread doc/source/theory/pQCD.rst Outdated
Comment thread doc/source/theory/pQCD.rst Outdated
@alecandido
Copy link
Copy Markdown
Collaborator

alecandido commented Mar 8, 2022

There is still the open question about benchmark_APFEL_msbar_solution, but all in all I should not block because of this (it's nice to perfectly understand everything exactly when you're doing it, but in this case it's not really a priority).

Let's merge 🚀

@giacomomagni giacomomagni merged commit 1456443 into develop Mar 8, 2022
@delete-merged-branch delete-merged-branch Bot deleted the feature/Scale_variation_B branch March 8, 2022 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request physics new physics features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants