Enable running normal ACTIONX keywords from PYACTION
The run() function invoked by PYACTION has got a new fifth argument which is a callable the script should utilize to apply the keywords from an ACTIONX keyword. The callable is implemented as C++ lambda which will run the Schedule::iterateScheduleSection() method and make sure an updated SimulatorUpdate variable can be passed back to the simulator.
This commit is contained in:
@@ -90,7 +90,7 @@ void msim::post_step(Schedule& schedule, SummaryState& st, data::Solution& /* so
|
||||
}
|
||||
|
||||
for (const auto& pyaction : actions.pending_python())
|
||||
pyaction->run(this->state, schedule, report_step, st);
|
||||
schedule.runPyAction(report_step, *pyaction, this->state, st);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user