load_plugin

Contents

load_plugin#

pulserver.design.load_plugin()[source]#

Import a plugin file and instantiate the one SequencePlugin it defines.

The module is registered as pulserver_plugin_<file stem>; loading another file with the same stem replaces it. A subclass of ScannerSequence is a plugin too. options are the values the plugin’s option() calls return in place of their defaults, by option name; the module is executed again for each load, so each combination of options is a plugin of its own.

Raises:
  • ValueError – If the file defines no SequencePlugin subclass, or more than one.

  • OptionError – If options names an option the plugin does not declare, or gives one a value it does not take.