Add a `--overwrite-if-different`

Open
#207 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start by reading the pineko code that creates or reuses ekos and inspect how it reads the theory and operator from an eko. Work out which inputs determine whether two products are identical, then define and implement the --overwrite-if-different behavior. Done means the command reuses identical ekos and replaces ones that differ; the issue names no files or tests.

Written by the indexing model from the issue text.

Description

enhancement

There are certain situations where we might not be sure whether an eko can be reused or not (for instance, if one tries to create both theories 40_000_000 and 41_000_000, many ekos will be the same for NLO and NNLO grids, but some won't due to new channels, different scales, etc).

The clever user might copy all ekos from one folder into the other, thinking they are hacking the system... however all sort of problems will arise.
Ideally pineko will look at the theory and operator inside the eko and realize when the resulting product would be exactly the same and when it won't.

Dominant language
Python
Stars
2
Forks
0
Avg merge
10d 34m
Merged PRs (30d)
3

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/pineko

All issues in NNPDF/pineko

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.