Skip to content

Commit

Permalink
MAINT: Fix doc build (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner authored Jul 21, 2024
1 parent 2f0896e commit acf4f9a
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 1 deletion.
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

0 comments on commit acf4f9a

Please sign in to comment.