BUGFIX: Problem when progressbar.py missing, problem with zero correct claims.

This commit is contained in:
Cas Cremers 2011-01-24 21:39:35 +01:00
parent 19749e0293
commit 88ee944c4b
2 changed files with 14 additions and 2 deletions

View File

@ -45,6 +45,12 @@ class ProgressBar(object):
print " Done." print " Done."
def SimpleProgress():
return
def ETA():
return
def Percentage(): def Percentage():
return return

View File

@ -464,6 +464,14 @@ def findAllMPA(protocolset,options=[],mpaoptions=[]):
# Find all correct claims in each protocol # Find all correct claims in each protocol
(protocolset,correct,cpcount) = getCorrectIsolatedClaims(protocolset,options) (protocolset,correct,cpcount) = getCorrectIsolatedClaims(protocolset,options)
print "Investigating %i correct claims in %i protocols." % (len(correct), cpcount) print "Investigating %i correct claims in %i protocols." % (len(correct), cpcount)
mpaprots = []
res = []
if len(correct) == 0:
print "Nothing to do."
return res
if OPTS.verbose: if OPTS.verbose:
""" """
When verbose, list correct claims in protocols When verbose, list correct claims in protocols
@ -570,8 +578,6 @@ def findAllMPA(protocolset,options=[],mpaoptions=[]):
they are not, some other errors should have been reported by the Scyther they are not, some other errors should have been reported by the Scyther
backend anyway (conflicting protocol definitions in MPA analysis). backend anyway (conflicting protocol definitions in MPA analysis).
""" """
mpaprots = []
res = []
for att in FOUND: for att in FOUND:
pn = att.protocol() pn = att.protocol()
if pn not in mpaprots: if pn not in mpaprots: