Swap `Q0` and `nf0` for `Qref` and `nfref`

Open
#329 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@ashishsoni-ai is already working on this.

Since Oct 17, 2026.

  • #398 by @ashishsoni-ai — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start in src/yadism/runner.py around line 121, where Q0 and nf0 build the atlas for the structure functions. Check whether anything else reads these names, including the alphas interface used through eko, before renaming them to Qref and nfref. Done when the references are renamed consistently and the existing tests still pass.

Written by the indexing model from the issue text.

Description

refactor

I believe the only relevant appearance of Q0 and nf0 is here:
https://github.com/NNPDF/yadism/blob/072fc9ecd5f2496fbb5b21c143673fe7232f3ff7/src/yadism/runner.py#L121
where we use them to construct the atlas for the structure functions (i.e. how many light flavors per Q2). However, this is only needed to provide a reference point (since the class requires that), but I think we never compute any paths, i.e. any reference will do.

I suggest to use Qref and nfref instead, which you may need for alphas, if you use the interface through yadism to eko. The core functionality of yadism is of course independent of $\alpha_s$ and its configuration.

Dominant language
Python
Stars
11
Forks
2
Avg merge
2d 13h
Merged PRs (30d)
6

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NNPDF/yadism

All issues in NNPDF/yadism

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.