Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: Fix doc build #62

Merged
merged 3 commits into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
groups:
actions:
patterns:
- "*"
6 changes: 6 additions & 0 deletions .github/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
changelog:
exclude:
authors:
- dependabot
- pre-commit-ci
- github-actions
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ junit-results.xml
# Sphinx documentation
doc/_build/
doc/generated/
sg_execution_times.rst

# PyBuilder
target/
1 change: 1 addition & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 19 additions & 0 deletions mne_realtime/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
2 changes: 1 addition & 1 deletion mne_realtime/tests/test_fieldtrip_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Loading