Skip to content

Commit 54b4c36

Browse files
authored
Merge pull request #54 from cortex-lab/reverse_alf
Cast list to numpy array in phy model
2 parents 9643077 + 01e35e1 commit 54b4c36

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ 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+
## [2.6.4] 2025-12-07
9+
10+
### Fixed
11+
- #53 channel_ids is often provided as a list, cast numpy arrayW
12+
813
## [2.6.3] 2025-11-03
914

1015
### Added

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Electrophysiological data analysis library used by [phy](https://github.com/kwik
99

1010
- run all tests using pytest `pytest phylib`
1111
- PR to main
12+
- update `CHANGELOG.md` and version in `phylib\__init__.py`
1213
- publish to pypi:
1314
```shell
1415
rm -R dist

phylib/__init__.py

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

2323
__author__ = 'Cyrille Rossant'
2424
__email__ = 'cyrille.rossant at gmail.com'
25-
__version__ = '2.6.3'
25+
__version__ = '2.6.4'
2626
__version_git__ = __version__ + _git_version()
2727

2828

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)