Template for making plug-ins for the Python-Microscopy Environment (PYME)
- Clone the repository, add your recipe module files, dsviewer module files, and visgui module files to the respective
folders in
pyme-plugin/package_name
. - Change the name of the
pyme-plugin/package_name
directory. - In the
plugins
directory, go into thedsviewer
,recipes
, andvisgui
folders and editpackage_name.txt
to include your actual package name, and to point to each of your module files with a new line. For example, two dsviewer module files could have apackage_name.txt
file of:
mynewpackage.dsviewer_modules.my_core_functions
mynewpackage.dsviewer_modules.my_other_dsview_modules
- Change the filenames of the
package_name.txt
files to match your package. - In the top directory, edit
setup.py
to include your package name, version, and description. - Run
python setup.py develop
orpython setup.py develop
from the top directory. This will install your package and run the post-install script (install_plugin.py
) to register the plugin with PYME. Any additional configuration you would like to be automatic for users on install (e.g. a GUI pop up) can be added to that script.