Skip to content

Commit de42275

Browse files
authored
Merge branch 'master' into remove-cron
2 parents ba1144d + b1f227f commit de42275

26 files changed

+164
-145
lines changed

codemeta.json

Lines changed: 6 additions & 5 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": "2024-10-14",
8-
"downloadUrl": "https://files.pythonhosted.org/packages/e0/0d/e973b7e8464b6f1d88022c46040f203d93c0b080af0e33702bb11873dbbb/neo-0.13.4.tar.gz",
7+
"dateModified": "2025-01-20",
8+
"downloadUrl": "https://files.pythonhosted.org/packages/3b/91/c3630d766b3b959f8e604d8d41580c78973ece5f1e070b13bd9755dba60b/neo-0.14.0.tar.gz",
99
"issueTracker": "https://github.com/NeuralEnsemble/python-neo/issues",
1010
"name": "Neo",
11-
"version": "0.13.4",
11+
"version": "0.14.0",
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.13.4.html",
15+
"releaseNotes": "https://neo.readthedocs.io/en/latest/releases/0.14.0.html",
1616
"funding": "https://cordis.europa.eu/project/id/945539",
1717
"developmentStatus": "active",
1818
"referencePublication": "https://doi.org/10.3389/fninf.2014.00010",
@@ -113,6 +113,7 @@
113113
{ "@type": "Person", "givenName": "Xin", "familyName": "Niu"},
114114
{ "@type": "Person", "givenName": "Anthony", "familyName": "Pinto"},
115115
{ "@type": "Person", "givenName": "Chris", "familyName": "Heydrick"},
116-
{"@type": "Person", "givenName": "Nikhil", "familyName": "Chandra"}
116+
{"@type": "Person", "givenName": "Nikhil", "familyName": "Chandra"},
117+
{"@type": "Person", "givenName": "Luigi", "familyName": "Petrucco"}
117118
]
118119
}

doc/source/authors.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ and may not be the current affiliation of a contributor.
8989
* Anthony Pinto [41]
9090
* Xin Niu
9191
* Nikhil Chandra [40]
92+
* Luigi Petrucco [42]
9293

9394
1. Centre de Recherche en Neuroscience de Lyon, CNRS UMR5292 - INSERM U1028 - Universite Claude Bernard Lyon 1
9495
2. Unité de Neuroscience, Information et Complexité, CNRS UPR 3293, Gif-sur-Yvette, France
@@ -131,6 +132,7 @@ and may not be the current affiliation of a contributor.
131132
39. Massachusetts General Hospital, Department of Molecular Biology
132133
40. Plexon Inc.
133134
41. Paris Brain Institute
135+
42. Istituto Italiano di Tecnologia (IIT), Italy
134136

135137

136138

doc/source/releases.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Release notes
66
.. toctree::
77
:maxdepth: 1
88

9+
releases/0.14.0.rst
910
releases/0.13.4.rst
1011
releases/0.13.3.rst
1112
releases/0.13.2.rst

doc/source/releases/0.14.0.rst

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
========================
2+
Neo 0.14.0 release notes
3+
========================
4+
5+
17 January 2025
6+
7+
This release of Neo is now compatible with NumPy 2.0 for core and IOs (with the exception of :class:`MedIO`) as well as Python 3.13,
8+
and includes IO bug fixes with an eye toward a 1.0 release.
9+
10+
See all `pull requests`_ included in this release and the `list of closed issues`_.
11+
12+
Updated dependencies
13+
--------------------
14+
15+
Neo now has a limit of NumPy >= 1.22.4
16+
17+
CI Improvements
18+
---------------
19+
20+
To ensure compatiblility between pre- and post- NumPy 2.0 the CI was changed to test on the lowest supported Python (3.9) and
21+
the highest supported Python (3.13) each with NumPy 1.26 as well as NumPy 2.0 for all :code:`RawIO` and :code:`IO` tests.
22+
23+
We also no longer use a cached conda env for testing as we see that there is no speed benefit to caching and we had some issues
24+
with the caches getting corrupted.
25+
26+
Testing of additional Python-NumPy combinations for core tests were added (NumPy 2.0 and 2.1 with their respective Python versions).
27+
28+
Bug fixes and improvements in IO modules
29+
----------------------------------------
30+
31+
Bug fixes and/or improvements have been made to :class:`NeuroNexusIO`, :class:`OpenEphysBinaryIO`, :class:`MicromedIO`, :class:`IntanIO` and :class:`SpikeGLX`.
32+
33+
Acknowledgements
34+
----------------
35+
36+
Thanks to Zach McKenzie, Heberto Mayorquin, Andrew Davison, Luigi Petrucco, Alessio Buccino, and Samuel Garcia.
37+
38+
.. _`pull requests` : https://github.com/NeuralEnsemble/python-neo/pulls?q=is%3Apr+is%3Aclosed+milestone%3A0.14.0
39+
40+
.. _`list of closed issues` : https://github.com/NeuralEnsemble/python-neo/issues?q=is%3Aissue%20state%3Aclosed%20milestone%3A0.14.0

examples/plot_igorio.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
2-
IgorProIO Demo
3-
===========================
2+
IgorProIO Demo (BROKEN)
3+
=======================
44
55
"""
66

@@ -17,25 +17,25 @@
1717
# Downloaded from Human Brain Project Collaboratory
1818
# Digital Reconstruction of Neocortical Microcircuitry (nmc-portal)
1919
# http://microcircuits.epfl.ch/#/animal/8ecde7d1-b2d2-11e4-b949-6003088da632
20-
21-
22-
datafile_url = "https://microcircuits.epfl.ch/data/released_data/B95.zip"
23-
filename_zip = "B95.zip"
24-
filename = "grouped_ephys/B95/B95_Ch0_IDRest_107.ibw"
25-
urlretrieve(datafile_url, filename_zip)
26-
27-
zip_ref = zipfile.ZipFile(filename_zip) # create zipfile object
28-
zip_ref.extract(path=".", member=filename) # extract file to dir
29-
zip_ref.close()
30-
31-
######################################################
32-
# Once we have our data we can use `get_io` to find an
33-
# io (Igor in this case). Then we read the analogsignals
34-
# Finally we will make some nice plots
35-
reader = get_io(filename)
36-
signal = reader.read_analogsignal()
37-
plt.plot(signal.times, signal)
38-
plt.xlabel(signal.sampling_period.dimensionality)
39-
plt.ylabel(signal.dimensionality)
40-
41-
plt.show()
20+
# NOTE: this dataset is not found as the link is broken.
21+
22+
# datafile_url = "https://microcircuits.epfl.ch/data/released_data/B95.zip"
23+
# filename_zip = "B95.zip"
24+
# filename = "grouped_ephys/B95/B95_Ch0_IDRest_107.ibw"
25+
# urlretrieve(datafile_url, filename_zip)
26+
27+
# zip_ref = zipfile.ZipFile(filename_zip) # create zipfile object
28+
# zip_ref.extract(path=".", member=filename) # extract file to dir
29+
# zip_ref.close()
30+
31+
# ######################################################
32+
# # Once we have our data we can use `get_io` to find an
33+
# # io (Igor in this case). Then we read the analogsignals
34+
# # Finally we will make some nice plots
35+
# reader = get_io(filename)
36+
# signal = reader.read_analogsignal()
37+
# plt.plot(signal.times, signal)
38+
# plt.xlabel(signal.sampling_period.dimensionality)
39+
# plt.ylabel(signal.dimensionality)
40+
41+
# plt.show()

neo/core/irregularlysampledsignal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class IrregularlySampledSignal(BaseSignal):
103103
The filesystem path or url of the orginal data
104104
array_annotations: dict | None, default: None
105105
Dict mapping strings to numpy arrays containing annotations for all data points
106-
**annotations: dict
106+
annotations: dict
107107
Optional additional metadata supplied by the user as a dict. Will be stored in
108108
the annotations attribute of the object
109109

neo/core/segment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Segment(Container):
4242
index: int | None, default: None
4343
You can use this to define a temporal ordering of your Segment.
4444
For instance you could use this for trial numbers.
45-
**annotations: dict | None,
45+
annotations: dict | None,
4646
Other keyword annotations for the dataset
4747
4848
Examples
@@ -70,7 +70,7 @@ class Segment(Container):
7070
Notes
7171
-----
7272
73-
*Container of*:
73+
Container of:
7474
:class:`Epoch`
7575
:class:`Event`
7676
:class:`AnalogSignal`

neo/core/spiketrain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def normalize_times_array(times, units=None, dtype=None, copy=None):
199199
"In order to facilitate the deprecation copy can be set to None but will raise an "
200200
"error if set to True/False since this will silently do nothing. This argument will be completely "
201201
"removed in Neo 0.15.0. Please update your code base as necessary."
202-
)
202+
)
203203

204204
if dtype is None:
205205
if not hasattr(times, "dtype"):
@@ -276,7 +276,7 @@ class SpikeTrain(DataObject):
276276
The path or location of the original data file.
277277
array_annotations: dict
278278
A dictonary mapping of strings to numpy arrays containing annotations for all data points
279-
**annotations: dict
279+
annotations: dict
280280
Other user defined metadata given as a dict
281281
282282
Notes

neo/core/view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ChannelView(BaseNeo):
3131
Filesystem path or URL of the original data file.
3232
array_annotations: dict | None, default: None
3333
Dict mapping strings to numpy arrays containing annotations for all data points
34-
**annotations: dict
34+
annotations: dict
3535
Other use-specified metadata with keywords
3636
"""
3737

neo/io/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* :attr:`NestIO`
4646
* :attr:`NeuralynxIO`
4747
* :attr:`NeuroExplorerIO`
48-
* :attr:`NeuroNexusIO
48+
* :attr:`NeuroNexusIO`
4949
* :attr:`NeuroScopeIO`
5050
* :attr:`NeuroshareIO`
5151
* :attr:`NixIO`
@@ -193,6 +193,7 @@
193193
.. autoattribute:: extensions
194194
195195
.. autoclass:: neo.io.NeuroNexusIO
196+
196197
.. autoattribute:: extensions
197198
198199
.. autoclass:: neo.io.NeuroScopeIO

0 commit comments

Comments
 (0)