in this line:
|
let (name, typ) = fun.split_once('+').unwrap_or((fun, "")); |
the split should happen once from the right, i.e. what Python calls rsplit('+', 1) this ensures that if the convolution function name does contain an explicit +, for whatever stupid reason, it can still be used by adding an explicit + to the end. The alternative is to allow to escape that +, which is more complicated however ...
cc @samiyrj
in this line:
pineappl/pineappl_cli/src/helpers.rs
Line 33 in f67347c
the split should happen once from the right, i.e. what Python calls
rsplit('+', 1)this ensures that if the convolution function name does contain an explicit+, for whatever stupid reason, it can still be used by adding an explicit+to the end. The alternative is to allow to escape that+, which is more complicated however ...cc @samiyrj