Should read truth data from the parser options rather than direct from args

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2301 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
chartl 2009-12-09 23:26:26 +00:00
parent f7c44ad019
commit 987fced151
1 changed files with 7 additions and 1 deletions

View File

@ -615,6 +615,12 @@ def main():
fields = OPTIONS.fields.split(',')
truthVCF = None
#print("LENGTH OF ARGS "+str(len(args)))
if OPTIONS.truth <> None:
truthVCF = OPTIONS.truth
readTruth(truthVCF)
if len(args) > 1:
truthVCF = args[1]
TRUTH_CALLS = readTruth(truthVCF)
@ -654,4 +660,4 @@ if __name__ == "__main__":
p.sort_stats('time').print_stats(10)
p.sort_stats('time', 'cum').print_stats(.5, 'init')
else:
main()
main()