From 2c0f77f57a5fef0d9195169380610998a07257de Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Sun, 21 Jul 2024 13:51:38 -0400 Subject: [PATCH 1/3] MAINT: Fix doc build --- .gitignore | 1 + doc/conf.py | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index dda8ceb..4986b34 100644 --- a/.gitignore +++ b/.gitignore @@ -63,6 +63,7 @@ junit-results.xml # Sphinx documentation doc/_build/ doc/generated/ +sg_execution_times.rst # PyBuilder target/ diff --git a/doc/conf.py b/doc/conf.py index 5c5b445..b33eb4b 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -373,6 +373,7 @@ def reset_warnings(gallery_conf, fname): 'n_ch_groups', # unlinkable 'mne_qt_browser.figure.MNEQtBrowser', + 'mne.utils._typing.Self', } # Adapted from MNE-Python From eee39671da1fb33059394e9df5b05a3034310b6b Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Sun, 21 Jul 2024 14:03:33 -0400 Subject: [PATCH 2/3] ENH: Dependabot --- .github/dependabot.yml | 10 ++++++++++ .github/release.yaml | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/release.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..d57929b --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" + groups: + actions: + patterns: + - "*" diff --git a/.github/release.yaml b/.github/release.yaml new file mode 100644 index 0000000..386ce98 --- /dev/null +++ b/.github/release.yaml @@ -0,0 +1,6 @@ +changelog: + exclude: + authors: + - dependabot + - pre-commit-ci + - github-actions From 2954455ecef4e7a02e359a5c85597f2f3a849120 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Sun, 21 Jul 2024 14:11:53 -0400 Subject: [PATCH 3/3] FIX: Better --- mne_realtime/epochs.py | 19 +++++++++++++++++++ mne_realtime/tests/test_fieldtrip_client.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/mne_realtime/epochs.py b/mne_realtime/epochs.py index ca356f7..97c37d1 100644 --- a/mne_realtime/epochs.py +++ b/mne_realtime/epochs.py @@ -211,6 +211,25 @@ def __init__(self, client, event_id, tmin, tmax, stim_channel='STI 014', self.isi_max = isi_max + def __getitem__(self, item): + """Return an Epochs object with a copied subset of epochs. + + Parameters + ---------- + item : int | slice | array-like | str + See Notes for use cases. + + Returns + ------- + epochs : instance of Epochs + The subset of epochs. + + Notes + ----- + See :class:`mne.Epochs` for more information. + """ + return super().__getitem__(item) + @property def events(self): """The events associated with the epochs currently in the queue.""" diff --git a/mne_realtime/tests/test_fieldtrip_client.py b/mne_realtime/tests/test_fieldtrip_client.py index 1443b24..dbdc29c 100644 --- a/mne_realtime/tests/test_fieldtrip_client.py +++ b/mne_realtime/tests/test_fieldtrip_client.py @@ -138,7 +138,7 @@ def test_fieldtrip_client(free_tcp_port): tmax=5, wait_max=2) as rt_client: tmin_samp1 = rt_client.tmin_samp - time.sleep(1) # Pause measurement + time.sleep(5) # Pause measurement # Start the FieldTrip buffer again with pytest.warns(RuntimeWarning):