-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix backward matching #247
Conversation
|
Also should we add a forward-backward run to the iso-bench? actually, can we bring eko/benchmarks/eko/benchmark_evol_to_unity.py Lines 109 to 112 in 9538753
|
maybe the problem was time ... @giacomomagni do you remember? |
@felixhekhorn should we merge the quick fix, and worry about tests at a later stage? |
Before merging I would like to perform the benchmark of evolving to 1.65 and then back to 100 to see whether it is fixed or not |
If I recall correctly problems where both time but also accuracy, because you had to test against and identity matrix, which was not really good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments.
Could you please update also here:
backward_method : ["exact", "expanded" or ""] |
backward_method : ["exact", "expanded" or ""] |
and maybe we should use None
instead of ""
here and similar:
(backward_method != "" and ker_base.is_singlet) |
Otherwise also adding .value
in config would be more consistent with the other modules of Eko. Simply changing here:
eko/src/eko/evolution_operator/grid.py
Line 86 in 9538753
config["backward_inversion"] = configs.inversion_method |
|
I agree with using
but I would pass the whole object to |
Co-authored-by: Alessandro Candido <[email protected]>
Actually, thinking about the alternatives If we need a default we could pick one of the two (in case we really want a default, and we really want to avoid one of them, we can add a |
I think the |
as already said - most likely we can not stick to our no-default-strategy in the light of #145 ... so let's assume something
indeed, now as you say I remember: eko/src/eko/evolution_operator/operator_matrix_element.py Lines 52 to 70 in 9538753
|
I take it back, But we can still use the two methods, and just keep the empty string at the level of Numba (Numba usage is internal, we do not need to propagate to everywhere else, and outside it, we know if it is backward or not). |
@alecandido @felixhekhorn So in the end what we decided? I revert the changes to use again strings? |
Nono, I was talking about strings inside Numba (where for sure we can not propagate Python's enum, unless we convert to integers). About your changes, keep them as they are. I would not really consider the option of using strings again. |
Pull request made to fix the bug in the backward matching:
in the function
build_ome
the argumentbackward_method
arrives as an object of the typeInversionMethod.EXACT
orInversionMethod.EXPANDED
but we are checking it to be equal to strings. In conclusion the backward matching is never applied (the matching operator is always the upwards one) unless we add the.value
.