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_namedirectory. - In the
pluginsdirectory, go into thedsviewer,recipes, andvisguifolders and editpackage_name.txtto 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.txtfile of:
mynewpackage.dsviewer_modules.my_core_functions
mynewpackage.dsviewer_modules.my_other_dsview_modules
- Change the filenames of the
package_name.txtfiles to match your package. - In the top directory, edit
setup.pyto include your package name, version, and description. - Run
python setup.py developorpython setup.py developfrom 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.