Skip to content

Commit

Permalink
setup logger for iblsorter
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Jan 3, 2025
1 parent fed7b2e commit d4b3bba
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ibllib/pipes/ephys_tasks.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import logging
import traceback
from pathlib import Path
import subprocess
import re
import shutil
import subprocess
import traceback

import packaging.version
import numpy as np
Expand All @@ -13,6 +13,7 @@
from ibldsp.utils import rms
from ibldsp.waveform_extraction import extract_wfs_cbin
import one.alf.io as alfio
import iblutil.util

from ibllib.misc import check_nvidia_driver
from ibllib.pipes import base_tasks
Expand Down Expand Up @@ -714,6 +715,7 @@ def _run_iblsort(self, ap_file):
(discontinued support for old spike sortings in the probe folder <1.5.5)
:return: path of the folder containing ks2 spike sorting output
"""
iblutil.util.setup_logger('iblsorter', level='INFO')
sorter_dir = self.session_path.joinpath("spike_sorters", self.SPIKE_SORTER_NAME, self.pname)
self.FORCE_RERUN = False
if not self.FORCE_RERUN:
Expand All @@ -726,7 +728,6 @@ def _run_iblsort(self, ap_file):
return sorter_dir
else:
self.FORCE_RERUN = True
_logger.info(f"job progress command: tail -f {self.scratch_folder_run} *.log")
self.scratch_folder_run.mkdir(parents=True, exist_ok=True)
check_nvidia_driver()
try:
Expand Down

0 comments on commit d4b3bba

Please sign in to comment.