GithubHelp home page GithubHelp logo

Comments (5)

alecandido avatar alecandido commented on July 21, 2024

In principle, you could always erase from it.

We never finished turning genpdf into a full-fledged toolbox, but you can check if stripping distributions is already supported there, and otherwise add it yourself (it should be pretty simple)

https://github.com/NNPDF/eko/tree/master/src/ekobox/genpdf
https://eko.readthedocs.io/en/latest/code/genpdf.html?highlight=genpdf

from eko.

giacomomagni avatar giacomomagni commented on July 21, 2024

Actually, looking at the code the easiest fix, that will solve your problem would be to change the pids list passed here:

https://github.com/NNPDF/nnpdf/blob/e470c7e73490f3d4725dde6813aba2a2de018b69/n3fit/src/evolven3fit_new/evolve.py#L184-L186

So we can drop 22 if there is no QED and top according to MaxNfPdf.
If you agree, I suggest to move the issue there and I can draft a PR.

from eko.

Radonirinaunimi avatar Radonirinaunimi commented on July 21, 2024

Thanks both!

Actually, looking at the code the easiest fix, that will solve your problem would be to change the pids list passed here:

https://github.com/NNPDF/nnpdf/blob/e470c7e73490f3d4725dde6813aba2a2de018b69/n3fit/src/evolven3fit_new/evolve.py#L184-L186

So we can drop 22 if there is no QED and top according to MaxNfPdf. If you agree, I suggest to move the issue there and I can draft a PR.

This is indeed the best place to apply the modification. I am not sure though what people think about this. If @scarlehoff thinks that this is a reasonable, then if you @giacomomagni could open a PR to address this that'd be great (otherwise I can also do so).

from eko.

scarlehoff avatar scarlehoff commented on July 21, 2024

Yes, LHAPDF actually just puts 0 when it doesn't find a flavour so it should be equivalent.

However

The reason is that some random MC programs will crash just because of this

which MC programs are these? Wouldn't this be a bug as well to be reported to them? Or is it expected behavior? (we can fix it in our side since it wouldn't change anything ofc but still)

from eko.

Radonirinaunimi avatar Radonirinaunimi commented on July 21, 2024

Closing this as it was indeed a limitation in the MC codes (which for now has to be fixed by the user).

from eko.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.