Commit 5735ac81 authored by Lucas Bourneuf's avatar Lucas Bourneuf

simplify the core.run function

parent 9b156fc2
......@@ -113,10 +113,11 @@ def yield_run(scripts:[Script], initial_context:str='', verbosity:int=0) -> (str
def run(scripts:[Script], initial_context:str='', verbosity:int=0) -> str:
last = None
"Return the final context obtained by running given pipeline on initial_context"
out = None
for out, _ in yield_run(scripts, initial_context, verbosity):
last = out
return last
pass
return out
def solve_context(context:str, *, nb_model:int=0) -> clyngor.Answers:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment