本文整理匯總了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()