We advise you to avoid calling RE from inside a function, as is done here. We can see this for demo purposes, but it's still good to avoid having this things floating around, especially in an interactive namespace. They can lead to unexpected and confusion behavior; the RunEngine should always be called directly. If brevity is the goal, it's better to use functools.partial to make a succinct plan:
We advise you to avoid calling
RE
from inside a function, as is done here. We can see this for demo purposes, but it's still good to avoid having this things floating around, especially in an interactive namespace. They can lead to unexpected and confusion behavior; the RunEngine should always be called directly. If brevity is the goal, it's better to usefunctools.partial
to make a succinct plan:Before:
After:
where
mona_core
must be modified to accept anmd
argument.