Beispiel #1
0
def get_args():
    parser = optparse.OptionParser(
        description='Initialise the database and calculate all statistics.',
        version=TypesDatabase.version_string(TOOL),
    )
    parser.add_option('--db', metavar='FILE', dest='db',
                      help='which database to read [default: %default]',
                      default=TypesDatabase.DEFAULT_FILENAME)
    TypesParallel.add_options(parser)
    parser.add_option('--dry-run', dest='dryrun', action='store_true',
                      help='initialise the database if needed, but do not run calculation; just tell what would happen',
                      default=False)
    parser.add_option('--recalc', dest='recalc', action='store_true',
                      help='recalculate even if results already exist',
                      default=False)
    parser.add_option('--conly', dest='p', action='store_false',
                      help='only curves [default: curves and permutation testing]',
                      default=True)
    parser.add_option('--ponly', dest='c', action='store_false',
                      help='only permutation testing',
                      default=True)
    parser.add_option('--citer', metavar='N', dest='citer', type=int,
                      help='number of iterations for curves [default: %default]',
                      default=CITER)
    parser.add_option('--piter', metavar='N', dest='piter', type=int,
                      help='number of iterations for permutation testing [default: %default]',
                      default=PITER)
    parser.add_option('--x', metavar='N', dest='x',
                      help='maximum x resolution (number of slots) [default: %default]',
                      default=X_DEF)
    parser.add_option('--y', metavar='N', dest='y',
                      help='maximum y resolution (number of slots) [default: %default]',
                      default=Y_DEF)
    (options, args) = parser.parse_args()
    return options
Beispiel #2
0
def get_args():
    parser = optparse.OptionParser(
        description='Update all plots.',
        version=TypesDatabase.version_string(TOOL),
    )
    parser.add_option('--db', metavar='FILE', dest='db',
                      help='which database to read [default: %default]',
                      default=TypesDatabase.DEFAULT_FILENAME)
    TypesParallel.add_options(parser)
    parser.add_option('--type-lists', dest='with_typelists', action='store_true',
                      help='produce type lists',
                      default=False)
    parser.add_option('--sample-lists', dest='with_samplelists', action='store_true',
                      help='produce sample lists',
                      default=False)
    parser.add_option('--slides', dest='slide_version', action='store_true',
                      help='presentation slide version',
                      default=False)
    parser.add_option('--plotdir', metavar='DIRECTORY', dest='plotdir',
                      help='where to store PDF plots [default: %default]',
                      default=PLOT_DIR)
    parser.add_option('--htmldir', metavar='DIRECTORY', dest='htmldir',
                      help='where to store SVG plots and HTML files [default: %default]',
                      default=HTML_DIR)
    (options, args) = parser.parse_args()
    return options
Beispiel #3
0
def get_args():
    parser = optparse.OptionParser(
        description='Generate web user interface.',
        version=TypesDatabase.version_string(TOOL),
    )
    parser.add_option('--db', metavar='FILE', dest='db',
                      help='which database to read [default: %default]',
                      default=TypesDatabase.DEFAULT_FILENAME)
    parser.add_option('--srcdir', metavar='FILE', dest='srcdir',
                      help='HTML source directory [default: %default]',
                      default=DEFAULT_SRC)
    parser.add_option('--destdir', metavar='FILE', dest='destdir',
                      help='HTML targer directory [default: %default]',
                      default=DEFAULT_DEST)
    (options, args) = parser.parse_args()
    return options
Beispiel #4
0
def get_args():
    parser = optparse.OptionParser(
        description='Update all plots.',
        version=TypesDatabase.version_string(TOOL),
    )
    parser.add_option('--db', metavar='FILE', dest='db',
                      help='which database to read [default: %default]',
                      default=TypesDatabase.DEFAULT_FILENAME)
    TypesParallel.add_options(parser)
    parser.add_option('--plotdir', metavar='DIRECTORY', dest='plotdir',
                      help='where to store PDF plots [default: %default]',
                      default=PLOT_DIR)
    parser.add_option('--htmldir', metavar='DIRECTORY', dest='htmldir',
                      help='where to store SVG plots and HTML files [default: %default]',
                      default=HTML_DIR)
    (options, args) = parser.parse_args()
    return options
Beispiel #5
0
def get_args():
    parser = optparse.OptionParser(
        description='Update all plots.',
        version=TypesDatabase.version_string(TOOL),
    )
    parser.add_option('--db',
                      metavar='FILE',
                      dest='db',
                      help='which database to read [default: %default]',
                      default=TypesDatabase.DEFAULT_FILENAME)
    TypesParallel.add_options(parser)
    parser.add_option('--type-lists',
                      dest='with_typelists',
                      action='store_true',
                      help='produce type lists',
                      default=False)
    parser.add_option('--sample-lists',
                      dest='with_samplelists',
                      action='store_true',
                      help='produce sample lists',
                      default=False)
    parser.add_option('--slides',
                      dest='slide_version',
                      action='store_true',
                      help='presentation slide version',
                      default=False)
    parser.add_option('--plotdir',
                      metavar='DIRECTORY',
                      dest='plotdir',
                      help='where to store PDF plots [default: %default]',
                      default=PLOT_DIR)
    parser.add_option(
        '--htmldir',
        metavar='DIRECTORY',
        dest='htmldir',
        help='where to store SVG plots and HTML files [default: %default]',
        default=HTML_DIR)
    (options, args) = parser.parse_args()
    return options