Skip to content

Commit

Permalink
Merge pull request #39 from int-brain-lab/wf_extract_fix
Browse files Browse the repository at this point in the history
Wf extract fix
  • Loading branch information
chris-langfield authored Aug 20, 2024
2 parents 3146d40 + 5380377 commit 913610e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# 1.2

## 1.2.1 2024-08-20
- bugfix waveform extraction: fix logic when channel labels is not None

## 1.2.0 2024-08-01
- Adds `ibldsp.waveform_extraction.WaveformsLoader`, an interface for waveforms extracted by `extract_wfs_cbin`.

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name="ibl-neuropixel",
version="1.2.0",
version="1.2.1",
author="The International Brain Laboratory",
description="Collection of tools for Neuropixel 1.0 and 2.0 probes data",
long_description=long_description,
Expand Down
4 changes: 2 additions & 2 deletions src/ibldsp/waveform_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ def extract_wfs_cbin(
if channel_labels is None and "bad_channel_interpolation" in preprocess_steps:
logger.info("Running channel detection")
channel_labels = _get_channel_labels(sr)
else:
channel_labels = channel_labels or np.zeros(sr.nc - sr.nsync)
elif channel_labels is None:
channel_labels = np.zeros(sr.nc - sr.nsync)

nwf = len(wf_flat)
nu = unit_ids.shape[0]
Expand Down

0 comments on commit 913610e

Please sign in to comment.