@@ -178,20 +178,20 @@ def execute(self) -> list[tuple[BenchmarkRecord, OnlineDetectionTrace[Any]]]:
178178
179179 results .append ((record , trace ))
180180
181- if registry_path is not None :
182- fieldnames = ["algorithm" , "configuration_hash" , "data" , "threshold" , "trace_path" ]
183- with open (registry_path , mode = "w" , encoding = "utf-8" , newline = "" ) as f :
184- writer = csv .DictWriter (f , fieldnames = fieldnames )
185- writer .writeheader ()
186- for rec in registry .values ():
187- writer .writerow (
188- {
189- "algorithm" : rec .algorithm ,
190- "configuration_hash" : rec .configuration_hash ,
191- "data" : rec .data ,
192- "threshold" : rec .threshold ,
193- "trace_path" : rec .trace_path or "" ,
194- }
195- )
181+ if registry_path is not None :
182+ fieldnames = ["algorithm" , "configuration_hash" , "data" , "threshold" , "trace_path" ]
183+ with open (registry_path , mode = "w" , encoding = "utf-8" , newline = "" ) as f :
184+ writer = csv .DictWriter (f , fieldnames = fieldnames )
185+ writer .writeheader ()
186+ for rec in registry .values ():
187+ writer .writerow (
188+ {
189+ "algorithm" : rec .algorithm ,
190+ "configuration_hash" : rec .configuration_hash ,
191+ "data" : rec .data ,
192+ "threshold" : rec .threshold ,
193+ "trace_path" : rec .trace_path or "" ,
194+ }
195+ )
196196
197197 return results
0 commit comments