Skip to content

Commit a24f3c1

Browse files
authored
Merge pull request #168 from SpikeInterface/prepare_1.9.1
Prepare 1.9.1 release
2 parents 57483d7 + 4be3335 commit a24f3c1

File tree

6 files changed

+44
-12
lines changed

6 files changed

+44
-12
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
os: ["ubuntu-latest"]
16-
python-version: ["3.9"]
16+
python-version: ["3.10"]
1717
steps:
1818
- uses: actions/checkout@v2
1919
- uses: s-weigand/setup-conda@v1

docs/generate_templates.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ A set of 13 cell models from layer 5 is included in the basic installation and c
1414
the `download <https://bbp.epfl.ch/nmc-portal/downloads>`_ page, move them to the cell model folder (which can be
1515
retrieved with the :code:`mearec default-config` command or with the Python code:
1616
:code:`mr.get_default_cell_models_folder()`), and unzip them.
17-
Note also custom models cane be used. In `this notebook <https://github.com/alejoe91/MEArec/blob/master/notebooks/generate_recordings_with_allen_models.ipynb>`_ we show how to use models from the
17+
Note also custom models cane be used. In `this notebook <https://github.com/SpikeInterface/MEArec/blob/main/notebooks/generate_recordings_with_allen_models.ipynb>`_ we show how to use models from the
1818
`Allen database <https://celltypes.brain-map.org/>`_ to build templates (and recordings).
1919

2020
Templates are generated in two steps:

docs/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The :code:`recgen` is a :code:`RecordingGenerator` objects and contains the foll
3636
* spike_traces: (n_spiketrains, n_samples) clean spike trace for each spike train
3737
* info: dictionary with parameters used
3838

39-
There are several notebooks available `here <https://github.com/SpikeInterface/MEArec/tree/master/notebooks>`_
39+
There are several notebooks available `here <https://github.com/SpikeInterface/MEArec/tree/main/notebooks>`_
4040
that show MEArec applications.
4141

4242
Plotting

docs/whatisnew.rst

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,35 @@ Release notes
55
=============
66

77

8+
Version 1.9.1
9+
=============
10+
11+
6th April 2024
12+
13+
Bug fixes
14+
---------
15+
16+
- Fix n_burst_spikes param (when missing from default dict) (#156)
17+
- Fix jitter generation in drifting (#153)
18+
19+
Improvements
20+
------------
21+
22+
- Load templates as memmap rather than in memory (#167)
23+
- Little clean of padding templates (#165)
24+
- Do not remove resampled templates if not resampled enhancement (#163)
25+
- Fix numpy deprecations (#162)
26+
- Improve documentation (#159)
27+
28+
829
Version 1.9.0
930
=============
1031

32+
23rd May 2023
33+
1134

12-
### Bug fixes
35+
Bug fixes
36+
---------
1337

1438
- Propagate filter order and add filter mode (#145)
1539
- Fix resampling timing (#141)
@@ -18,33 +42,41 @@ Version 1.9.0
1842
- Fix passing template_ids (#120)
1943

2044

21-
### New features
45+
New features
46+
------------
47+
2248

2349
- Add option to control the drift linear gradient (#129)
2450
- Define external drifts (#128)
2551
- Add check_eap_shape parameter for template-generation (#126)
2652
- Add extract_units_drift_vector (#122)
2753

2854

29-
### Improvements
55+
Improvements
56+
------------
3057

3158
- Convolution computed in float for more precision (#118)
3259

33-
### Packaging
60+
Packaging
61+
---------
3462

3563
- Packaging: move to pyproject.toml, src structure, and black (#146)
3664

3765

3866
Version 1.8.0
3967
=============
4068

41-
### New features
69+
18th July 2022
70+
71+
New features
72+
------------
4273

4374
- Refactored drift generation (#97)
4475
- Add LSB, ADC_BIT_DEPTH, and GAIN concepts (#104, #105)
4576
- Add smoothing step to templates to make sure they sart and end at 0 (#110)
4677

47-
### Improvements
78+
Improvements
79+
------------
4880

4981
- Pre-generate random positions at template generation to improve speed (#95)
5082
- Improve random seed management (#94)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "MEArec"
3-
version = "1.9.0"
3+
version = "1.9.1"
44
authors = [
55
{ name="Alessio Buccino", email="[email protected]" },
66
]

src/MEArec/generators/recgensteps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def chunk_uncorrelated_noise_(
312312

313313
if noise_color:
314314
# iir peak filter
315-
b_iir, a_iir = scipy.signal.iirpeak(color_peak, Q=color_q, fs=fs)
315+
b_iir, a_iir = scipy.signal.iirpeak(color_peak, Q=color_q, fs=float(fs))
316316
additive_noise = scipy.signal.filtfilt(b_iir, a_iir, additive_noise, axis=0, padlen=1000)
317317
additive_noise += (
318318
color_noise_floor
@@ -354,7 +354,7 @@ def chunk_distance_correlated_noise_(
354354
additive_noise = noise_level * np.random.multivariate_normal(np.zeros(n_elec), cov_dist, size=length)
355355
if noise_color:
356356
# iir peak filter
357-
b_iir, a_iir = scipy.signal.iirpeak(color_peak, Q=color_q, fs=fs)
357+
b_iir, a_iir = scipy.signal.iirpeak(color_peak, Q=color_q, fs=float(fs))
358358
additive_noise = scipy.signal.filtfilt(b_iir, a_iir, additive_noise, axis=0, padlen=1000)
359359
additive_noise = additive_noise + color_noise_floor * np.std(additive_noise) * np.random.multivariate_normal(
360360
np.zeros(n_elec), cov_dist, size=length

0 commit comments

Comments
 (0)