Skip to content

Commit 52e6bb3

Browse files
committed
Added docstring for lock monitor's Plugin.plugin_setup_complete().
1 parent 8439832 commit 52e6bb3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

blacs/plugins/lock_monitor/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,21 @@ def set_notification_instances(self, notifications):
11001100
self.notifications = notifications
11011101

11021102
def plugin_setup_complete(self, BLACS):
1103+
"""Do additional plugin setup after blacs has done more starting up.
1104+
1105+
Plugins are initialized early on in blacs's start up. This method is
1106+
called later on during blacs's startup once more things, such as the
1107+
experiment queue, have been created. Therefore any setup that requires
1108+
access to those other parts of blacs must be done here rather than in
1109+
the plugin's `__init__()` method.
1110+
1111+
Args:
1112+
BLACS (dict): A dictionary where the keys are strings and the values
1113+
are various parts of `blacs.__main__.BLACS`. For more details on
1114+
exactly what is included in that dictionary, examine the code in
1115+
`blacs.__main__.BLACS.__init__()` (there this dictionary, as of
1116+
this writing, is called `blacs_data`).
1117+
"""
11031118
logger.info("plugin_setup_complete() called.")
11041119
self.BLACS = BLACS
11051120
self.queue_manager = self.BLACS['experiment_queue']

0 commit comments

Comments
 (0)