Differences between revisions 1 and 2
Revision 1 as of 2012-04-19 18:49:12
Size: 73
Editor: JohnFlanagan
Comment:
Revision 2 as of 2012-04-19 19:12:08
Size: 610
Editor: JohnFlanagan
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
This tutorial covers the necessary steps to incorporate a e2program into the projectmanager.
=== Modifications to the e2program itself ===
Canonical e2programs must maintain the following standards
 1. Options are handled via EMArgumentParser, which is a subclass of Python's argparse module (version 2.7 and higher).
 1. Arguments are handled via EMArgumentParser.
 1. A line usage = """blah, blah, blah...""" must be present to give help info on the e2program
 1. A line progname = os.path.basename(sys.argv[0]) must be present

Tutorial to aid adding a new e2program to the e2projectmanager.py

This tutorial covers the necessary steps to incorporate a e2program into the projectmanager.

Modifications to the e2program itself

Canonical e2programs must maintain the following standards

  1. Options are handled via EMArgumentParser, which is a subclass of Python's argparse module (version 2.7 and higher).
  2. Arguments are handled via EMArgumentParser.
  3. A line usage = """blah, blah, blah...""" must be present to give help info on the e2program
  4. A line progname = os.path.basename(sys.argv[0]) must be present

EMAN2PMWorkflow (last edited 2012-04-19 20:22:10 by JohnFlanagan)