NNPDF / pineappl

PineAPPL is not an extension of APPLgrid
https://nnpdf.github.io/pineappl/
GNU General Public License v3.0
12 stars 3 forks source link

Add new switch to `convolute` subcommand to multiply with factors #124

Closed cschwan closed 2 years ago

cschwan commented 2 years ago

We need the possibility to easily multiply the convoluted results with some factors, see for instance https://github.com/NNPDF/pineko/issues/63.

cschwan commented 2 years ago

This really isn't the job of PineAPPL, we should use R, numpy or similar tools/libaries for that.

alecandido commented 2 years ago

I guess we can just consider to expose more API to also modify the grid (at the moment is possible to cut bins, but I don't know about anything else).

cschwan commented 2 years ago

In the meantime we have Grid::scale_by_bin, but I'm not sure there's a Python wrapper yet.

alecandido commented 2 years ago

Oh yeah, you are right: I did it myself and forgot https://github.com/N3PDF/pineappl/issues/148#issuecomment-1159107258