本文整理汇总了Python中version.Version.getVersion方法的典型用法代码示例。如果您正苦于以下问题:Python Version.getVersion方法的具体用法?Python Version.getVersion怎么用?Python Version.getVersion使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类version.Version
的用法示例。
在下文中一共展示了Version.getVersion方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: parseArguments
# 需要导入模块: from version import Version [as 别名]
# 或者: from version.Version import getVersion [as 别名]
def parseArguments():
v = Version()
progName = basename(sys.argv[0])
version = "This is bioplot.py version %s, Copyright (C) 2014: Jos Bouten" % v.getVersion()
parser = argparse.ArgumentParser(description="%s [plot type] [<label1> <label2> <label3> ...]\n\
bioplot.py version %s.\n\
This program comes with ABSOLUTELY NO WARRANTY; for details run `bioplot.py -l\'.\n\
This is free software, and you are welcome to redistribute it\n\
under certain conditions; type `bioplot.py -l\' for details.\n\
This program was written by Jos Bouten.\n\
You can contact me via josbouten at gmail dot com." % (progName, version))
parser.add_argument('-Z', '--zoo', action="store_true", dest="plotZoo", help="show zoo plot")
parser.add_argument('-A', '--accuracy', action="store_true", dest="plotAccuracy", help="show accuracy plot")
parser.add_argument('-D', '--det', action="store_true", dest="plotDet", help="show Det plot")
parser.add_argument('-E', '--eer', action="store_true", dest="plotEer", help="show EER plot")
parser.add_argument('-T', '--tippet', action="store_true", dest="plotTippet", help="show Tippett plot")
parser.add_argument('-M', '--matrix', action="store_true", dest="plotMatrix", help="show matrix plot")
parser.add_argument('-O', '--roc', action="store_true", dest="plotRoc", help="show roc plot")
parser.add_argument('-R', '--ranking', action="store_true", dest="plotRanking", help="show ranking plot")
parser.add_argument('-C', '--histogramc', action="store_true", dest="plotHistCum", help="show cumulative histogram")
parser.add_argument('-H', '--histogram', action="store_true", dest="plotHist", help="show histogram")
parser.add_argument('-k', '--kernel', action="store_true", dest="plotKernel",
help="show kernel estimate in histogram")
parser.add_argument('-L', '--label', dest='labels', type=str, nargs='+', help="add labels to plot")
parser.add_argument('-e', '--exp', action="store", dest="expName", default='test',
help="name of experiment used in plot title, default = test")
parser.add_argument('-i', '--inputfile', action="store", dest="filenames", nargs='+',
default=['input/testdata_A.txt'],
help="filename of filenames of data file(s) or name of database, default = input/testdata_A.txt")
parser.add_argument('-t', '--type', action="store", dest="dataType", default='type3',
help="type of data, default = type3, use 'database' if you want to read data from a database.")
parser.add_argument('-d', '--threshold', action="store", dest="threshold", type=float, default=0.7,
help="system threshold for ranking plot, default = 0.7")
parser.add_argument('-c', '--config', action="store", dest="configFilename", default='bioplot.cfg',
help="use alternative config file")
parser.add_argument('-l', '--license', action="store_true", dest="showLicense", help="show license")
parser.add_argument('-s', '--settings', action="store_true", dest="showOptions", help="show settings only")
parser.add_argument('-q', '--quiet', action="store_true", dest="quiet", help="do not show settings")
return parser.parse_args()