poli.core.registry.set_observer_run_script#
- poli.core.registry.set_observer_run_script(script_file_name: str, observer_name: Optional[str] = None) None #
Sets a run_script to be called on observer instantiation.
This function takes as input the location of a script, and an observer name. Using these, it sets the configuration. If no observer name is passed, the observer is set as the default observer.
- Parameters
script_file_name (str) – The location of the script to be run.
observer_name (str) – The name of the observer to be registered.
Notes
The observer script MUST accept port and password as arguments.