Use case: this is the custom run engine from LIX (they check that a user name and proposal id exist, and prompt user (with login()) if false):
class CustomRunEngine(RunEngine):
def __call__(self, *args, **kwargs):
global username
global proposal_id
global run_id
if username is None or proposal_id is None or run_id is None:
login()
return super().__call__(*args, **kwargs)
RE = CustomRunEngine()
#gs.RE = RE
Allows user to define custom RE in namespace. Works as:
other alternative is (which is not supported by this PR here)
what do you think?
Use case: this is the custom run engine from LIX (they check that a user name and proposal id exist, and prompt user (with
login()
) if false):