Possible improvements to plugin functionality #908
Labels
enhancement
Improve existing, and add new capabilites to FOQUS
Priority:Normal
Normal Priority Issue or PR
While working on @ksbeattie's PR #906, an issue was encountered with the FOQUS plugin discovery mechanism, where adding a comment header at the top of a plugin .py file causes the file to stop being recognized as a plugin. This prompted a discussion on the current implementation of the plugin system implementation, along with possible ways to improve it.
Usage and Requirements
BFGS.py
Current solution
Possible alternatives
A: directory/filename pattern
foqus_lib/plugins
(possibly with subdirectories to further distinguish between different plugin categories)foqus_plugins/sm_optimizer_123456.py
foqus_plugin_sm_optimizer_123456.py
B: Python code defined in file
FOQUS_PLUGIN = True
) or a function (def register_foqus_plugin(): pass
)ast
module of the standard libraryFurther reading
The text was updated successfully, but these errors were encountered: