Skip to content

Commit 5cd7a7e

Browse files
committed
Merge remote-tracking branch 'upstream/main' into bugfix_bads_included
2 parents 394edcd + bb0f638 commit 5cd7a7e

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
# Ruff mne_connectivity
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: v0.12.12
4+
rev: v0.13.0
55
hooks:
66
- id: ruff
77
name: ruff lint mne_connectivity
@@ -10,7 +10,7 @@ repos:
1010

1111
# Ruff tutorials and examples
1212
- repo: https://github.com/astral-sh/ruff-pre-commit
13-
rev: v0.12.12
13+
rev: v0.13.0
1414
hooks:
1515
- id: ruff
1616
name: ruff lint tutorials and examples
@@ -47,7 +47,7 @@ repos:
4747

4848
# toml-sort
4949
- repo: https://github.com/pappasam/toml-sort.git
50-
rev: v0.24.2
50+
rev: v0.24.3
5151
hooks:
5252
- id: toml-sort-fix
5353

mne_connectivity/vector_ar/tests/test_var.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,10 @@ def test_vector_auto_regression():
281281
conn.get_data().mean(axis=0), single_conn.get_data(), decimal=1
282282
)
283283

284+
# compute single var with multiple lags
285+
single_conn_plags = vector_auto_regression(data, model="avg-epochs", lags=2)
286+
single_conn_plags.get_data("dense") # just check data can be reshaped properly
287+
284288
# compute residuals
285289
residuals = data - parr_conn.predict(data)
286290
assert residuals.shape == data.shape

mne_connectivity/vector_ar/var.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def vector_auto_regression(
3636
----------
3737
data : array_like, shape (n_epochs, n_signals, n_times) | Epochs | generator
3838
The data from which to compute connectivity. The epochs dimension is interpreted
39-
differently, depending on ``'output'`` argument.
39+
differently, depending on the ``'model'`` argument.
4040
times : array_like | None
4141
The time points used to construct the epoched ``data``. If ``None``, then
4242
``times_used`` in the returned ``conn`` will not be available.
@@ -58,7 +58,7 @@ def vector_auto_regression(
5858
5959
Returns
6060
-------
61-
conn : Connectivity | EpochConnectivity | TemporalConnectivity | EpochTemporalConnectivity
61+
conn : Connectivity | TemporalConnectivity | EpochConnectivity | EpochTemporalConnectivity
6262
The connectivity data estimated.
6363
6464
See Also

0 commit comments

Comments
 (0)