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 ofScannerSequenceis a plugin too.optionsare the values the plugin’soption()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
optionsnames an option the plugin does not declare, or gives one a value it does not take.