Giter Site home page Giter Site logo

scipion-em-template's Introduction

Scipion template plugin

This is a template plugin for scipion

Steps to adapt this plugin

IMPORTANT: To simplify the instructions all the commands would refer to an hypothetical new plugin name called "coolem". Note that you must replace "coolem" by your plugin name.

Clone it:

git clone [email protected]:scipion-em/scipion-em-template.git scipion-em-coolem

Reset the git repo

cd scipion-em-coolem
rm -rf .git
git init

Empty CHANGES.txt

rm CHANGES.txt && touch CHANGES.txt

Rename "myplugin" to coolem

mv myplugin coolem

Tidy up imports

IDE refactrization should rename at once the classes and the imports. Search in your IDE for "myplugin" and replace by "coolem"
  • coolem/protocols/protocol_hello_world.py:
class MyPluginPrefixHelloWorld --> class CoolemPrefixHelloWorld
  • coolem/protocol/__init__.py:
from .protocol_hello_world import MyPluginPrefixHelloWorld --> from .protocol_hello_world import CoolemPrefixHelloWorld
  • coolem/wizards/wizard_hello_world.py:
_targets = [(MyPluginPrefixHelloWorld, ['message'])] --> _targets = [(CoolemPrefixHelloWorld, ['message'])] class MyPluginPrefixHelloWorldWizard --> class CoolemPrefixHelloWorldWizard
  • coolem/wizards/__init__.py:
from .wizard_hello_world import MyPluginPrefixHelloWorldWizard --> from .wizard_hello_world import CoolemPrefixHelloWorldWizard
  • protcocols.conf: rename MyPluginPrefixHelloWorld --> CoolemPrefixHelloWorld
  • setup.py: Update almost all values: name, description, ... Be sure to update package data
  package_data={  # Optional
     'coolem': ['icon.png', 'protocols.conf'],
  }

and the entry point
entry_points={
    'pyworkflow.plugin': 'coolem = coolem'
}

Install the plugin in devel mode

scipion3 installp -p /home/me/scipion-em-coolem --devel

If installation fails, you can access pip options like:

scipion3 python -m pip ... (list, install, uninstall)

Customize it

Replace icon.png with your logo and update the bibtex.py with your reference.

Get rid of this content and keep the readme informative

Repository

To create the repository, following those guide depending the platform:

scipion-em-template's People

Contributors

albertmena avatar azazellochg avatar fonsecareyna82 avatar jormaister avatar pconesa avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.