Skip to content

Commit

Permalink
MAINT: Update for new copy kwarg (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner authored Nov 13, 2023
1 parent 8325ea7 commit fd55fa0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mne_qt_browser/_pg_figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import datetime
import functools
import gc
import inspect
import math
import platform
import sys
Expand Down Expand Up @@ -2948,10 +2949,13 @@ def run(self):
stop = start + chunk_size
# Load epochs
if self.mne.is_epochs:
kwargs = dict()
if "copy" in inspect.getfullargspec(self.mne.inst.get_data).kwonlyargs:
kwargs["copy"] = False
item = slice(start, stop)
with self.mne.inst.info._unlock():
data_chunk = np.concatenate(
self.mne.inst.get_data(item=item), axis=-1
self.mne.inst.get_data(item=item, **kwargs), axis=-1
)
# Load raw
else:
Expand Down

0 comments on commit fd55fa0

Please sign in to comment.