Skip to content

Commit 7367bb1

Browse files
committed
better
1 parent 2da4fac commit 7367bb1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

benchmarks/benchmarking_utils.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,12 @@ def run_benchmark(self, scenario: BenchmarkScenario):
165165
def run_bencmarks_and_collate(self, scenarios: Union[BenchmarkScenario, list[BenchmarkScenario]], filename: str):
166166
if not isinstance(scenarios, list):
167167
scenarios = [scenarios]
168-
records = [self.run_benchmark(s) for s in scenarios]
168+
records = []
169+
for s in records:
170+
try:
171+
records.append(self.run_benchmark(s))
172+
except Exception as e:
173+
logger.error(f"Running scenario ({s.name}) led to error:\n{e}")
169174
df = pd.DataFrame.from_records([r for r in records if r])
170175
df.to_csv(filename, index=False)
171176
logger.info(f"Results serialized to {filename=}.")

0 commit comments

Comments
 (0)