File tree Expand file tree Collapse file tree 7 files changed +22
-14
lines changed Expand file tree Collapse file tree 7 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -13,19 +13,20 @@ jobs:
13
13
fail-fast : false
14
14
matrix :
15
15
os : ["ubuntu-latest"]
16
- python-version : ["3.10"]
16
+ python-version : ["3.10", "3.12" ]
17
17
steps :
18
- - uses : actions/checkout@v2
19
- - uses : s-weigand/setup-conda@v1
18
+ - uses : actions/checkout@v4
19
+ - name : Set up Python
20
+ uses : actions/setup-python@v5
20
21
with :
21
22
python-version : ${{ matrix.python-version }}
22
- - name : Which conda/ python
23
+ - name : Which python
23
24
run : |
24
- conda --version
25
25
python --version
26
26
- name : Install dependencies
27
27
run : |
28
28
pip install .[templates,test]
29
+ pip install "zarr<3.0.0"
29
30
- name : pip list
30
31
run : |
31
32
pip list
Original file line number Diff line number Diff line change @@ -14,13 +14,14 @@ jobs:
14
14
runs-on : ubuntu-latest
15
15
16
16
steps :
17
- - uses : actions/checkout@v2
18
- - uses : s-weigand/setup-conda@v1
17
+ - uses : actions/checkout@v4
18
+ - name : Set up Python
19
+ uses : actions/setup-python@v5
19
20
with :
20
- python-version : " 3.10 "
21
+ python-version : " 3.11 "
21
22
- name : Which python
22
23
run : |
23
- conda --version
24
+ python --version
24
25
- name : Install dependencies
25
26
run : |
26
27
pip install .[templates,test]
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " MEArec"
3
- version = " 1.9.1 "
3
+ version = " 1.9.2 "
4
4
authors = [
5
5
{
name =
" Alessio Buccino" ,
email =
" [email protected] " },
6
6
]
Original file line number Diff line number Diff line change 1
1
version : 2
2
2
3
+ sphinx :
4
+ # Path to your Sphinx configuration file.
5
+ configuration : docs/conf.py
6
+
3
7
build :
4
8
os : ubuntu-22.04
5
9
tools :
Original file line number Diff line number Diff line change 1
1
from copy import deepcopy
2
2
3
- import elephant .spike_train_generation as stg
4
- import elephant .statistics as stat
5
3
import neo
6
4
import numpy as np
7
5
import quantities as pq
@@ -129,6 +127,9 @@ def generate_spikes(self):
129
127
Generate spike trains based on default_params of the SpikeTrainGenerator class.
130
128
self.spiketrains contains the newly generated spike trains
131
129
"""
130
+ import elephant .spike_train_generation as stg
131
+ import elephant .statistics as stat
132
+
132
133
if not self ._has_spiketrains :
133
134
self .spiketrains = []
134
135
idx = 0
Original file line number Diff line number Diff line change 4
4
from copy import deepcopy
5
5
from pathlib import Path
6
6
7
- import elephant .statistics as stat
8
7
import numpy as np
9
8
import yaml
10
9
from click .testing import CliRunner
@@ -198,6 +197,8 @@ def test_gen_templates_beta_distr(self):
198
197
assert tempgen_drift_beta .templates .shape [0 ] == self .tempgen_drift .templates .shape [0 ]
199
198
200
199
def test_gen_spiketrains (self ):
200
+ import elephant .statistics as stat
201
+
201
202
print ("Test spike train generation" )
202
203
rec_params = mr .get_default_recordings_params ()
203
204
sp_params = rec_params ["spiketrains" ]
Original file line number Diff line number Diff line change @@ -777,7 +777,7 @@ def clean_dict(d):
777
777
def _clean_numpy_scalar (v ):
778
778
if isinstance (v , np .bool_ ):
779
779
v = bool (v )
780
- if isinstance (v , np .float_ ):
780
+ if isinstance (v , np .float64 ):
781
781
v = float (v )
782
782
if isinstance (v , np .int_ ):
783
783
v = int (v )
You can’t perform that action at this time.
0 commit comments