Skip to content

Commit 621f152

Browse files
committed
#53 channel ids is ofter provided as a list
1 parent 9643077 commit 621f152

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## UNRELEASED
9+
10+
### Fixed
11+
- #53 channel_ids is often provided as a list, cast numpy array
12+
13+
814
## [2.6.3] 2025-11-03
915

1016
### Added

phylib/io/model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def from_sparse(data, cols, channel_ids):
7777
List of requested channel ids (columns).
7878
7979
"""
80+
channel_ids = np.array(channel_ids)
8081
# The axis in the data that contains the channels.
8182
if len(channel_ids) != len(np.unique(channel_ids)):
8283
raise NotImplementedError("Multiple identical requested channels "

0 commit comments

Comments
 (0)