Skip to content

Commit 0944fa0

Browse files
committed
oups
1 parent d8c866f commit 0944fa0

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

src/spikeinterface/sorters/basesorter.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -266,21 +266,21 @@ def run_from_folder(cls, output_folder, raise_error, verbose):
266266
}
267267
t0 = time.perf_counter()
268268

269-
# try:
270-
SorterClass._run_from_folder(sorter_output_folder, sorter_params, verbose)
271-
t1 = time.perf_counter()
272-
run_time = float(t1 - t0)
273-
has_error = False
274-
# except Exception as err:
275-
# has_error = True
276-
# run_time = None
277-
# log["error"] = True
278-
# error_log_to_display = traceback.format_exc()
279-
# trace_lines = error_log_to_display.strip().split("\n")
280-
# error_to_json = ["Traceback (most recent call last):"] + [
281-
# f" {line}" if not line.startswith(" ") else line for line in trace_lines[1:]
282-
# ]
283-
# log["error_trace"] = error_to_json
269+
try:
270+
SorterClass._run_from_folder(sorter_output_folder, sorter_params, verbose)
271+
t1 = time.perf_counter()
272+
run_time = float(t1 - t0)
273+
has_error = False
274+
except Exception as err:
275+
has_error = True
276+
run_time = None
277+
log["error"] = True
278+
error_log_to_display = traceback.format_exc()
279+
trace_lines = error_log_to_display.strip().split("\n")
280+
error_to_json = ["Traceback (most recent call last):"] + [
281+
f" {line}" if not line.startswith(" ") else line for line in trace_lines[1:]
282+
]
283+
log["error_trace"] = error_to_json
284284

285285
log["error"] = has_error
286286
log["run_time"] = run_time

0 commit comments

Comments
 (0)