Skip to content

Commit 36797f7

Browse files
Copyright (#1)
* update copyright and repo links * use trusted publisher instead of secrets in pypi workflow * remove ebrains mirroring workflow * fix isi log slope tests with numpy 2 * use python 3.12 to run cibuildwheel * use macos-13 with cibuildwheel --------- Co-authored-by: Aurélien Jaquier
1 parent 3880fb0 commit 36797f7

File tree

5 files changed

+21
-42
lines changed

5 files changed

+21
-42
lines changed

.github/workflows/build-wheels.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
os: [ubuntu-22.04, macos-12, windows-latest]
13+
os: [ubuntu-22.04, macos-13, windows-latest]
1414
python: [cp39, cp310, cp311, cp312]
1515
arch: [x86_64, amd64]
1616
exclude:
17-
- os: macos-12
17+
- os: macos-13
1818
arch: amd64
1919
- os: ubuntu-22.04
2020
arch: amd64
@@ -30,7 +30,7 @@ jobs:
3030
- name: Set up Python
3131
uses: actions/setup-python@v5
3232
with:
33-
python-version: 3.9 # This might need to be dynamic based on the matrix
33+
python-version: 3.12 # This might need to be dynamic based on the matrix
3434
- name: Install cibuildwheel
3535
run: pip install cibuildwheel
3636
- name: Build wheels

.github/workflows/mirror-ebrains.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ jobs:
7676
name: Release and Publish on PyPI
7777
runs-on: ubuntu-22.04
7878
needs: [call-test-workflow, tag, wheels, tarball]
79+
environment: # needed for pypi publication
80+
name: pypi
81+
url: https://pypi.org/p/efel
82+
permissions: # needed for pypi publication
83+
id-token: write
7984
steps:
8085
- uses: actions/checkout@v4
8186
with:
@@ -97,6 +102,3 @@ jobs:
97102
98103
- name: Publish package to PyPI
99104
uses: pypa/gh-action-pypi-publish@release/v1
100-
with:
101-
user: __token__
102-
password: ${{ secrets.PYPI_PASSWORD }}

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<img src="https://raw.githubusercontent.com/BlueBrain/eFEL/master/docs/source/logo/eFELBanner.png" alt="eFEL banner" />
1+
<img src="https://raw.githubusercontent.com/openbraininstitute/eFEL/master/docs/source/logo/eFELBanner.png" alt="eFEL banner" />
22

33
<table>
44
<tr>
@@ -20,31 +20,31 @@
2020
<tr>
2121
<td>License</td>
2222
<td>
23-
<a href="https://github.com/BlueBrain/efel/blob/master/LICENSE.txt">
23+
<a href="https://github.com/openbraininstitute/efel/blob/master/LICENSE.txt">
2424
<img src="https://img.shields.io/pypi/l/efel.svg" alt="license" />
2525
</a>
2626
</td>
2727
</tr>
2828
<tr>
2929
<td>Build Status</td>
3030
<td>
31-
<a href="https://github.com/BlueBrain/eFEL/actions">
32-
<img src="https://github.com/BlueBrain/eFEL/workflows/Build/badge.svg?branch=master" alt="actions build status" />
31+
<a href="https://github.com/openbraininstitute/eFEL/actions">
32+
<img src="https://github.com/openbraininstitute/eFEL/workflows/Build/badge.svg" alt="actions build status" />
3333
</a>
3434
</td>
3535
</tr>
3636
<tr>
3737
<td>Coverage</td>
3838
<td>
39-
<a href="https://codecov.io/gh/BlueBrain/efel">
40-
<img src="https://codecov.io/github/BlueBrain/eFEL/coverage.svg?branch=master" alt="coverage" />
39+
<a href="https://codecov.io/gh/openbraininstitute/efel">
40+
<img src="https://codecov.io/github/openbraininstitute/eFEL/coverage.svg?branch=master" alt="coverage" />
4141
</a>
4242
</td>
4343
</tr>
4444
<tr>
4545
<td>Gitter</td>
4646
<td>
47-
<a href="https://gitter.im/bluebrain/efel">
47+
<a href="https://gitter.im/openbraininstitute/efel">
4848
<img src="https://badges.gitter.im/Join%20Chat.svg" />
4949
</a>
5050
</td>
@@ -121,7 +121,7 @@ pip install efel
121121
If you want to install straight from the github repository you can use
122122

123123
```bash
124-
pip install git+git://github.com/BlueBrain/eFEL
124+
pip install git+git://github.com/openbraininstitute/eFEL
125125
```
126126

127127
Quick Start
@@ -139,7 +139,7 @@ To get a list with all the available feature names
139139
efel.get_feature_names()
140140
```
141141

142-
Note that the extra-cellular features, the bpap_attenuation feature and the check_ais_initiation feature are not listed above because they have to be used in a special way, as described [here](https://github.com/BlueBrain/eFEL/blob/master/examples/extracellular/extrafeats_example.ipynb) for extra-cellular features, [here](https://github.com/BlueBrain/eFEL/blob/master/docs/source/eFeatures.rst#bpap_attenuation) for bpap_attenuation feature and [here](https://github.com/BlueBrain/eFEL/blob/master/docs/source/eFeatures.rst#check_ais_initiation) for check_ais_initiation feature.
142+
Note that the extra-cellular features, the bpap_attenuation feature and the check_ais_initiation feature are not listed above because they have to be used in a special way, as described [here](https://github.com/openbraininstitute/eFEL/blob/master/examples/extracellular/extrafeats_example.ipynb) for extra-cellular features, [here](https://github.com/openbraininstitute/eFEL/blob/master/docs/source/eFeatures.rst#bpap_attenuation) for bpap_attenuation feature and [here](https://github.com/openbraininstitute/eFEL/blob/master/docs/source/eFeatures.rst#check_ais_initiation) for check_ais_initiation feature.
143143

144144
To change the spike detection threshold setting (default is -20 mV)
145145

@@ -151,7 +151,7 @@ For a full list of available settings, please refer to the [Setting class](./efe
151151
The python function to extract features is get_feature_values(...).
152152
Below is a short example on how to use this function. The code and example
153153
trace are available
154-
[here](https://github.com/BlueBrain/eFEL/blob/master/examples/basic/basic_example1.py)
154+
[here](https://github.com/openbraininstitute/eFEL/blob/master/examples/basic/basic_example1.py)
155155

156156
```python
157157
"""Basic example 1 for eFEL"""
@@ -239,4 +239,4 @@ This project/research was supported by funding to the Blue Brain Project, a rese
239239
Lausanne (EPFL), from the Swiss government’s ETH Board of the Swiss Federal Institutes of Technology.
240240

241241
Copyright (c) 2009-2024 Blue Brain Project/EPFL
242-
242+
Copyright (c) 2025 Open Brain Institute

tests/test_isi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def test_ISIs_single_spike():
3939
def test_isi_log_slope_core_exception():
4040
"""Test that _isi_log_slope_core handles np.polyfit raising a LinAlgError."""
4141
# Mock np.polyfit to raise a LinAlgError
42+
tmp = np.polyfit
4243
np.polyfit = MagicMock(side_effect=np.linalg.LinAlgError("Singular matrix"))
4344

4445
# Call _isi_log_slope_core with some dummy data
@@ -50,7 +51,7 @@ def test_isi_log_slope_core_exception():
5051
assert result is None
5152

5253
# Reset np.polyfit to its original state
53-
np.polyfit = np.lib.polynomial.polyfit
54+
np.polyfit = tmp
5455

5556

5657
class TestRegularISI:

0 commit comments

Comments
 (0)