blissoda.demo.processors.ewoks_macros.DemoEwoksMacroHandler#
- class blissoda.demo.processors.ewoks_macros.DemoEwoksMacroHandler(config=None, defaults=None)[source]#
Bases:
EwoksMacroHandler- Parameters:
config (
Optional[Dict[str,Any]])defaults (
Optional[Dict[str,Any]])
- CONFIG_MODEL_CLASS#
alias of
BlissAutomationConfig
- copy_and_remove_parameters(shared, name)#
Copy&Remove parameters from another scope (global or session, singleton or instance).
- Parameters:
shared (
bool)name (
Optional[str])
- Return type:
None
- disable()#
- enable()#
- property queue#
- property trigger_at: str | None#
- user_script_homedir()#
Root directory for scripts with relative file paths.
Equivalent of
user_script_homedirfrom Bliss for local Bliss macro’s.- Return type:
ESRFPath
- user_script_list()#
List python scripts from the proposal SCRIPTS directory.
Equivalent of
user_script_listfrom Bliss for local Bliss macro’s.
- user_script_load(scriptname, export_global='ewoks', blocking=False, timeout=None)#
Parse a script to extract function definitions and expose them as Ewoks function proxies in the Bliss session’s
env_dict.Each proxy builds a one-node Ewoks workflow dict and submits it.
Equivalent of
user_script_loadfrom Bliss for local Bliss macro’s.- Parameters:
scriptname (
str) – The python file to load (absolute path or relative touser_script_homedir).export_global (
Union[str,bool]) – Where to install the functions: -True: inject into global session namespaceenv_dict- “namespace” (default=”ewoks”): inject into that namespace -False: return a UserNamespace instead of injectingblocking (
bool) – Wait for result.timeout (
Optional[float]) – Timeout when waiting for the result.
- Return type:
Optional[_Unavailable]- Returns:
If
export_globalisFalse, returns aUserNamespacecontaining function proxies. Otherwise, functions are injected into the sessionenv_dictand nothing is returned.