Skip to content

Commit 83331d1

Browse files
committed
Merge branch 'hotfix/2.0.8'
2 parents a2dec1f + 258de3c commit 83331d1

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

ibllib/pipes/ephys_preprocessing.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,18 @@ def _run_pykilosort(self, ap_file):
139139
"""
140140
self.version = self._fetch_pykilosort_version(self.PYKILOSORT_REPO)
141141
label = ap_file.parts[-2] # this is usually the probe name
142-
if ap_file.parent.joinpath(f"spike_sorting_{self.SPIKE_SORTER_NAME}.log").exists():
143-
_logger.info(f"Already ran: spike_sorting_{self.SPIKE_SORTER_NAME}.log"
144-
f" found for {ap_file}, skipping.")
145-
return ap_file.parent
146-
sorter_dir = self.session_path.joinpath("spike_sorters", self.SPIKE_SORTER_NAME, label)
147-
print(sorter_dir.joinpath(f"spike_sorting_{self.SPIKE_SORTER_NAME}.log"))
148-
if sorter_dir.joinpath(f"spike_sorting_{self.SPIKE_SORTER_NAME}.log").exists():
149-
_logger.info(f"Already ran: spike_sorting_{self.SPIKE_SORTER_NAME}.log"
150-
f" found in {sorter_dir}, skipping.")
151-
return sorter_dir
142+
FORCE_RERUN = True
143+
if not FORCE_RERUN:
144+
if ap_file.parent.joinpath(f"spike_sorting_{self.SPIKE_SORTER_NAME}.log").exists():
145+
_logger.info(f"Already ran: spike_sorting_{self.SPIKE_SORTER_NAME}.log"
146+
f" found for {ap_file}, skipping.")
147+
return ap_file.parent
148+
sorter_dir = self.session_path.joinpath("spike_sorters", self.SPIKE_SORTER_NAME, label)
149+
print(sorter_dir.joinpath(f"spike_sorting_{self.SPIKE_SORTER_NAME}.log"))
150+
if sorter_dir.joinpath(f"spike_sorting_{self.SPIKE_SORTER_NAME}.log").exists():
151+
_logger.info(f"Already ran: spike_sorting_{self.SPIKE_SORTER_NAME}.log"
152+
f" found in {sorter_dir}, skipping.")
153+
return sorter_dir
152154
# get the scratch drive from the shell script
153155
with open(self.SHELL_SCRIPT) as fid:
154156
lines = fid.readlines()

release_notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
- ephyscellsqc: bugfix on probe creation for pykilosort subfolder
1919
- task version 6.2.5 specific audio extractor
2020
- camera times: index by video length when GPIO unstable
21+
### Release Notes 2.0.7 2021-09-17
22+
- spike sorting tasks re-run fully each time
2123

2224
### Release Notes 2.0.0 2021-08-04
2325
- ONE2 released on the master branch

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
setup(
2626
name='ibllib',
27-
version='2.0.7',
27+
version='2.0.8',
2828
python_requires='>={}.{}'.format(*REQUIRED_PYTHON),
2929
description='IBL libraries',
3030
license="MIT",

0 commit comments

Comments
 (0)