Skip to content

Commit

Permalink
Making the python tolerant of multiple submissions of the same alg
Browse files Browse the repository at this point in the history
  • Loading branch information
ounsworth committed Jul 22, 2024
1 parent 5cab7b3 commit fe7de7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pqc_report_writer_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,10 @@ def main():
for generator in implementations:
relevant_sars = [sar for sar in sars if sar.generator == generator ]

if len(relevant_sars) >= 1:
if len(relevant_sars) > 1:
print(f'Multiple results for {generator}', file=sys.stderr)

if len(relevant_sars) >= 1:
submittedAlgsCells.append('▣')
else:
submittedAlgsCells.append('')
Expand All @@ -228,7 +230,7 @@ def main():
relevant_avrs = [avr for avr in avrs if avr.generator == generator and avr.verifier == verifier]

if len(relevant_avrs) > 1:
raise ValueError(f'Multiple results for {alg_oid}: {generator}-{verifier}')
print(f'Multiple results for {alg_oid}: {generator}', file=sys.stderr)

if len(relevant_avrs) == 0:
# synthesize a result
Expand Down

0 comments on commit fe7de7c

Please sign in to comment.