Skip to content

Commit ac3098c

Browse files
committed
update branch
2 parents 824fd9e + 09ecccd commit ac3098c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+722
-437
lines changed

.github/workflows/core-test.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ on:
99
push:
1010
branches: [master]
1111

12-
13-
1412
jobs:
1513
multi-os-python-numpy:
1614
runs-on: ${{ matrix.os }}
@@ -20,27 +18,27 @@ jobs:
2018
matrix:
2119
os: ["ubuntu-latest", "windows-latest"]
2220
# "macos-latest",
23-
python-version: ['3.7', '3.8', '3.9', '3.10']
24-
numpy-version: ['1.18.5', '1.19.5', '1.20.3', '1.21.6', '1.22.4', '1.23.0']
21+
python-version: ['3.8', '3.9', '3.10', '3.11']
22+
numpy-version: ['1.19.5', '1.20.3', '1.21.6', '1.22.4', '1.23.5', '1.24.1']
2523
exclude:
26-
- python-version: '3.7'
27-
numpy-version: '1.22.4'
28-
- python-version: '3.7'
29-
numpy-version: '1.23.0'
30-
- python-version: '3.10'
31-
numpy-version: '1.18.5'
3224
- python-version: '3.10'
3325
numpy-version: '1.19.5'
3426
- python-version: '3.10'
3527
numpy-version: '1.20.3'
28+
- python-version: '3.11'
29+
numpy-version: '1.19.5'
30+
- python-version: '3.11'
31+
numpy-version: '1.20.3'
32+
- python-version: '3.11'
33+
numpy-version: '1.21.6'
3634
steps:
3735
- name: Set up Python ${{ matrix.python-version }}
38-
uses: actions/setup-python@v2
36+
uses: actions/setup-python@v4
3937
with:
4038
python-version: ${{ matrix.python-version }}
4139

4240
- name: Checkout repository
43-
uses: actions/checkout@v2
41+
uses: actions/checkout@v3
4442

4543
- name: Install numpy ${{ matrix.numpy-version }}
4644
run: |

.github/workflows/ebrains.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Mirror to EBRAINS
2+
3+
# Configure the events that are going to trigger tha automated update of the mirror
4+
on:
5+
push:
6+
branches: [ master ]
7+
8+
# Configure what will be updated
9+
jobs:
10+
# set the job name
11+
to_ebrains:
12+
runs-on: ubuntu-latest
13+
steps:
14+
# this task will push the master branch of the source_repo (github) to the
15+
# destination_repo (ebrains gitlab)
16+
- name: syncmaster
17+
uses: wei/git-sync@v3
18+
with:
19+
source_repo: https://github.com/NeuralEnsemble/python-neo
20+
source_branch: "master"
21+
destination_repo: "https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/NeuralEnsemble/neo.git"
22+
destination_branch: "main"
23+
# this task will push all tags from the source_repo to the destination_repo
24+
- name: synctags
25+
uses: wei/git-sync@v3
26+
with:
27+
source_repo: https://github.com/NeuralEnsemble/python-neo
28+
source_branch: "refs/tags/*"
29+
destination_repo: "https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/NeuralEnsemble/neo.git"
30+
destination_branch: "refs/tags/*"

.github/workflows/io-test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,24 @@ jobs:
2727
steps:
2828

2929
- name: Checkout repository
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@v3
3131

3232
- name: Get current year-month
3333
id: date
34-
run: echo "::set-output name=date::$(date +'%Y-%m')"
34+
run: echo "date=$(date +'%Y-%m')" >> $GITHUB_OUTPUT
3535

3636
- name: Get ephy_testing_data current head hash
3737
# the key depend on the last commit repo https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git
38-
id: vars
38+
id: ephy_testing_data_hash
3939
run: |
40-
echo "::set-output name=HASH_EPHY_DATASET::$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)"
40+
echo "latest_hash=$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)" >> GITHUB_OUTPUT
4141
4242
- uses: actions/cache@v3
4343
# Loading cache of ephys_testing_dataset
4444
id: cache-datasets
4545
with:
4646
path: ~/ephy_testing_data
47-
key: ${{ runner.os }}-datasets-${{ steps.vars.outputs.HASH_EPHY_DATASET }}
47+
key: ${{ runner.os }}-datasets-${{ steps.ephy_testing_data_hash.outputs.latest_hash }}
4848

4949
- uses: conda-incubator/setup-miniconda@v2
5050
with:

doc/source/developers_guide.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ a GitHub account and then set to watch the repository at `GitHub Repository`_
3838
Requirements
3939
------------
4040

41-
* Python_ 3.7 or later
42-
* numpy_ >= 1.11.0
41+
* Python_ 3.8 or later
42+
* numpy_ >= 1.19.5
4343
* quantities_ >= 0.12.1
4444
* nose_ >= 1.1.2 (for running tests)
4545
* Sphinx_ (for building documentation)
@@ -193,15 +193,15 @@ open a pull request on GitHub
193193
Python version
194194
--------------
195195

196-
Neo should work with Python 3.7 or newer. If you need support for Python 2.7,
196+
Neo should work with Python 3.8 or newer. If you need support for Python 2.7,
197197
use Neo v0.8.0 or earlier.
198198

199199

200200
Coding standards and style
201201
--------------------------
202202

203203
All code should conform as much as possible to `PEP 8`_, and should run with
204-
Python 3.7 or newer.
204+
Python 3.8 or newer.
205205

206206
You can use the `pep8`_ program to check the code for PEP 8 conformity.
207207
You can also use `flake8`_, which combines pep8 and pyflakes.

doc/source/install.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Installing from the Python Package Index
1111
Dependencies
1212
------------
1313

14-
* Python_ >= 3.7
15-
* numpy_ >= 1.18.5
14+
* Python_ >= 3.8
15+
* numpy_ >= 1.19.5
1616
* quantities_ >= 0.12.1
1717

1818
You can install the latest published version of Neo and its dependencies using::

doc/source/releases/0.11.1.rst

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
========================
2+
Neo 0.11.1 release notes
3+
========================
4+
5+
21st October 2022
6+
7+
.. currentmodule:: neo.io
8+
9+
Bug fixes and improvements in IO modules
10+
----------------------------------------
11+
12+
Bug fixes and/or improvements have been made to
13+
:class:`OpenEphysBinaryIO`, :class:`BlackrockIO`, :class:`NWBIO`, :class:`PhyIO`, :class:`NeuralynxIO`
14+
15+
16+
Supported format versions
17+
-------------------------
18+
19+
:class:`BlackrockIO` now supports file version 3.0
20+
21+
22+
Other changes
23+
-------------
24+
25+
New installation mode
26+
27+
- Neo can now be installed including all optional dependencies via *pip install neo[all]*
28+
29+
Faster import
30+
31+
- Dependency imports have been optimized for faster import of Neo
32+
33+
Epoch durations
34+
35+
- Epoch durations of epochs can now be of type float
36+
37+
See all `pull requests`_ included in this release and the `list of closed issues`_.
38+
39+
Acknowledgements
40+
----------------
41+
42+
Thanks to Andrew Davison, Julia Sprenger, Chadwick Boulay, Alessio Buccino, Elodie Legouée, Samuel Garcia for their contributions to this release.
43+
44+
.. generated with git shortlog --since=2022-09-01 -sne then checking Github for PRs merged since the last release but with commits before then
45+
46+
.. _`list of closed issues`: https://github.com/NeuralEnsemble/python-neo/issues?q=is%3Aissue+milestone%3A0.11.1+is%3Aclosed
47+
.. _`pull requests`: https://github.com/NeuralEnsemble/python-neo/pulls?q=is%3Apr+is%3Aclosed+merged%3A%3E2022-09-01+milestone%3A0.11.1

doc/source/whatisnew.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.11.1.rst
910
releases/0.11.0.rst
1011
releases/0.10.2.rst
1112
releases/0.10.1.rst

neo/core/epoch.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,14 @@ def __repr__(self):
175175
return '<Epoch: %s>' % ', '.join(objs)
176176

177177
def _repr_pretty_(self, pp, cycle):
178-
super()._repr_pretty_(pp, cycle)
178+
labels = ""
179+
if self._labels is not None:
180+
labels = " with labels"
181+
pp.text(f"{self.__class__.__name__} containing {self.size} epochs{labels}; "
182+
f"time units {self.units.dimensionality.string}; datatype {self.dtype} ")
183+
if self._has_repr_pretty_attrs_():
184+
pp.breakable()
185+
self._repr_pretty_attrs_(pp, cycle)
179186

180187
def rescale(self, units):
181188
'''

neo/core/event.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,14 @@ def __repr__(self):
148148
return '<Event: %s>' % ', '.join(objs)
149149

150150
def _repr_pretty_(self, pp, cycle):
151-
super()._repr_pretty_(pp, cycle)
151+
labels = ""
152+
if self._labels is not None:
153+
labels = " with labels"
154+
pp.text(f"{self.__class__.__name__} containing {self.size} events{labels}; "
155+
f"time units {self.units.dimensionality.string}; datatype {self.dtype} ")
156+
if self._has_repr_pretty_attrs_():
157+
pp.breakable()
158+
self._repr_pretty_attrs_(pp, cycle)
152159

153160
def rescale(self, units):
154161
'''

neo/core/spiketrain.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,21 @@ def __init__(self, times, t_stop, units=None, dtype=None, copy=True,
346346
array_annotations=array_annotations, **annotations)
347347

348348
def _repr_pretty_(self, pp, cycle):
349-
super()._repr_pretty_(pp, cycle)
349+
waveforms = ""
350+
if self.waveforms:
351+
waveforms = "with waveforms"
352+
pp.text(f"{self.__class__.__name__} containing {self.size} spikes{waveforms}; "
353+
f"units {self.units.dimensionality.string}; datatype {self.dtype} ")
354+
if self._has_repr_pretty_attrs_():
355+
pp.breakable()
356+
self._repr_pretty_attrs_(pp, cycle)
357+
358+
def _pp(line):
359+
pp.breakable()
360+
with pp.group(indent=1):
361+
pp.text(line)
362+
363+
_pp(f"time: {self.t_start} to {self.t_stop}")
350364

351365
def rescale(self, units):
352366
'''

0 commit comments

Comments
 (0)