Skip to content

Commit 856e016

Browse files
authored
Merge branch 'master' into py-314
2 parents baa6ff1 + 9196635 commit 856e016

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

codemeta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"license": "https://spdx.org/licenses/BSD-3-Clause",
55
"codeRepository": "https://github.com/NeuralEnsemble/python-neo",
66
"contIntegration": "https://github.com/NeuralEnsemble/python-neo/actions",
7-
"dateModified": "2025-07-08",
8-
"downloadUrl": "https://files.pythonhosted.org/packages/0e/47/ebc266619ea7f1e8025ba057ab446c14423b1265ec9c6810fa3a3fb02de4/neo-0.14.2.tar.gz",
7+
"dateModified": "2025-10-13",
8+
"downloadUrl": "https://files.pythonhosted.org/packages/12/74/2906034ce92f7fb76dac5f095dcbb2b061f55b1f6eda53fc45335c1689e2/neo-0.14.3.tar.gz",
99
"issueTracker": "https://github.com/NeuralEnsemble/python-neo/issues",
1010
"name": "Neo",
11-
"version": "0.14.2",
11+
"version": "0.14.3",
1212
"identifier": "RRID:SCR_000634",
1313
"description": "Neo is a Python package for working with electrophysiology data in Python, together with support for reading a wide range of neurophysiology file formats, including Spike2, NeuroExplorer, AlphaOmega, Axon, Blackrock, Plexon, Tdt, and support for writing to a subset of these formats plus non-proprietary formats including HDF5.\n\nThe goal of Neo is to improve interoperability between Python tools for analyzing, visualizing and generating electrophysiology data by providing a common, shared object model. In order to be as lightweight a dependency as possible, Neo is deliberately limited to represention of data, with no functions for data analysis or visualization.\n\nNeo is used by a number of other software tools, including SpykeViewer (data analysis and visualization), Elephant (data analysis), the G-node suite (databasing), PyNN (simulations), tridesclous_ (spike sorting) and ephyviewer (data visualization).\n\nNeo implements a hierarchical data model well adapted to intracellular and extracellular electrophysiology and EEG data with support for multi-electrodes (for example tetrodes). Neo's data objects build on the quantities package, which in turn builds on NumPy by adding support for physical dimensions. Thus Neo objects behave just like normal NumPy arrays, but with additional metadata, checks for dimensional consistency and automatic unit conversion.",
1414
"applicationCategory": "neuroscience",
15-
"releaseNotes": "https://neo.readthedocs.io/en/latest/releases/0.14.2.html",
15+
"releaseNotes": "https://neo.readthedocs.io/en/latest/releases/0.14.3.html",
1616
"funding": "https://cordis.europa.eu/project/id/945539",
1717
"developmentStatus": "active",
1818
"referencePublication": "https://doi.org/10.3389/fninf.2014.00010",

neo/rawio/baserawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
]
9595
# To be left an empty array if the concept of buffer is undefined for a reader.
9696
_signal_stream_dtype = [
97-
("name", "U64"), # not necessarily unique
97+
("name", "U128"), # not necessarily unique
9898
("id", "U64"), # must be unique
9999
(
100100
"buffer_id",

neo/rawio/spikeglxrawio.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -695,9 +695,12 @@ def extract_stream_info(meta_file, meta):
695695
# Calculate sample_length from actual file size instead of metadata to handle stub/modified files
696696
# The metadata fileSizeBytes may not match the actual .bin file (e.g., in test stub files)
697697
# Original calculation (only correct for unmodified files):
698-
# info["sample_length"] = int(meta["fileSizeBytes"]) // 2 // num_chan
699-
actual_file_size = Path(meta_file).with_suffix(".bin").stat().st_size
700-
info["sample_length"] = actual_file_size // 2 // num_chan # 2 bytes per int16 sample
698+
bin_file = Path(meta_file).with_suffix(".bin")
699+
if bin_file.exists():
700+
file_size = bin_file.stat().st_size
701+
else:
702+
file_size = int(meta["fileSizeBytes"])
703+
info["sample_length"] = file_size // 2 // num_chan # 2 bytes per int16 sample
701704
info["gate_num"] = gate_num
702705
info["trigger_num"] = trigger_num
703706
info["device"] = device

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "neo"
3-
version = "0.14.3"
3+
version = "0.15.0.dev0"
44
authors = [{name = "Neo authors and contributors"}]
55
description = "Neo is a package for representing electrophysiology data in Python, together with support for reading a wide range of neurophysiology file formats"
66
readme = "README.rst"

0 commit comments

Comments
 (0)