Skip to content
Snippets Groups Projects
Commit 613be849 authored by Christoph Hasse's avatar Christoph Hasse :cartwheel_tone1:
Browse files

fix example code

parent e914dd43
No related branches found
No related tags found
1 merge request!1497follow Rec!2683
Pipeline #3906564 passed
......@@ -83,7 +83,7 @@ def require_all(*cuts):
>>> import Functors as F
>>> functor = require_all(F.PT > 1, F.PID_K < 0)
>>> functor.code_repr()
'( ( PT > 1 ) & ( PID_K < 0 ) )'
'( ( ( RHO_COORDINATE chain THREEMOMENTUM ) > 1 ) & ( PID_K < 0 ) )'
"""
return functools.reduce(lambda f, g: f & g, cuts)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment