Skip to content
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

bye bye harmonics weight 5 #210

Merged
merged 4 commits into from
Feb 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions doc/source/theory/Mellin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,14 @@ The complete list of harmonics sums available in :mod:`ekore.harmonics` is:
- weight 5:

.. math ::
S_{5}, S_{4,1}, S_{3,1,1}, S_{2,3}, S_{2,2,1}, S_{2,1,1,1}, S_{2,1,-2}, S_{2,-3}, S_{-2,3}, S_{-2,2,1}, S_{-2,1,1,1}, S_{-5}

these sums relies on the integrals :mod:`ekore.harmonics.f_functions` :cite:`Blumlein:2009ta`
S_{5}, S_{-5}

We have also implemented a recursive computation of simple harmonics (single index), see :func:`ekore.harmonics.polygamma.recursive_harmonic_sum`

In the extra folder we provide and additional package :mod:`harmonics_w5` which compute analytical continuation of
weight 5 harmonics, currently not used in :mod:`ekore`:

.. math ::
S_{4,1}, S_{3,1,1}, S_{2,3}, S_{2,2,1}, S_{2,1,1,1}, S_{2,1,-2}, S_{2,-3}, S_{-2,3}, S_{-2,2,1}, S_{-2,1,1,1}

where these sums rely on the integrals :mod:`harmonics_w5.f_functions` :cite:`Blumlein:2009ta`
9 changes: 9 additions & 0 deletions extras/harmonics_w5/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Harmonics w5

This is a standalone package that provides analytical continuation of weight 5 harmonics.

to install it run:

```
poetry install
```
1,143 changes: 1,143 additions & 0 deletions extras/harmonics_w5/poetry.lock

Large diffs are not rendered by default.

90 changes: 90 additions & 0 deletions extras/harmonics_w5/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "harmonics_w5"
version = "0.0.0"
description = "Weight 5 harmonics"
readme = "README.md"
authors = [
"A. Barontini <[email protected]>",
"A. Candido <[email protected]>",
"F. Hekhorn <[email protected]>",
"N. Laurenti <[email protected]>",
"G. Magni <[email protected]>",
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Physics",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
]
repository = "https://github.com/N3PDF/eko"
packages = [
{ include = "harmonics_w5", from = "src" },
]

[tool.poetry.dependencies]
python = "^3.8,<3.11"
eko ="^0.12.0"

[tool.poetry.group.test]
optional = true

[tool.poetry.group.test.dependencies]
pytest = "^7.1.3"
pytest-cov = "4.0.0"
pytest-env = "^0.6.2"
pylint = "^2.12.2"

[tool.poetry.group.dev]
optional = true

[tool.poetry.group.dev.dependencies]
pdbpp = "^0.10.3"
ipython = "^8.0"


[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
dirty = true

[tool.poetry-dynamic-versioning.substitution]
files = ["src/harmonics_w5/version.py"]


[tool.poe.tasks]
test = "pytest tests"
lint = "pylint src/**/*.py -E"

[tool.pytest.ini_options]
testpaths = ['tests/']
python_files = ['test_*.py', 'benchmark_*.py', 'regression.py']
python_classes = ['Test*', 'Benchmark*']
python_functions = ['test_*', 'benchmark_*']
env = ["D:NUMBA_DISABLE_JIT=1"]

[tool.pylint.master]
# extensions not to check
extension-pkg-whitelist = ["numpy", "numba"]
ignore-paths = ["tests/"]
# has to be 1 as pylint is NOT threadsafe
jobs = 1
[tool.pylint.messages_control]
disable = ["invalid-name", "fixme"]
[tool.pylint.reports]
# Available formats are:
# text, parseable, colorized, json and msvs (visual studio).
output-format = "colorized"
[tool.pylint.format]
# Maximum number of characters on a single line.
max-line-length = 100
[tool.pylint.design]
# Maximum number of arguments for function / method
max-args = 10

[tool.pydocstyle]
convention = "numpy"
Loading