From fe7de7c0d1188304b9b201529cdd2fd02d944be9 Mon Sep 17 00:00:00 2001 From: Mike Ounsworth Date: Mon, 22 Jul 2024 10:52:46 +1000 Subject: [PATCH] Making the python tolerant of multiple submissions of the same alg --- src/pqc_report_writer_common.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pqc_report_writer_common.py b/src/pqc_report_writer_common.py index 6c288546..25e29482 100644 --- a/src/pqc_report_writer_common.py +++ b/src/pqc_report_writer_common.py @@ -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('') @@ -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