We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8325ea7 commit fd55fa0Copy full SHA for fd55fa0
mne_qt_browser/_pg_figure.py
@@ -8,6 +8,7 @@
8
import datetime
9
import functools
10
import gc
11
+import inspect
12
import math
13
import platform
14
import sys
@@ -2948,10 +2949,13 @@ def run(self):
2948
2949
stop = start + chunk_size
2950
# Load epochs
2951
if self.mne.is_epochs:
2952
+ kwargs = dict()
2953
+ if "copy" in inspect.getfullargspec(self.mne.inst.get_data).kwonlyargs:
2954
+ kwargs["copy"] = False
2955
item = slice(start, stop)
2956
with self.mne.inst.info._unlock():
2957
data_chunk = np.concatenate(
- self.mne.inst.get_data(item=item), axis=-1
2958
+ self.mne.inst.get_data(item=item, **kwargs), axis=-1
2959
)
2960
# Load raw
2961
else:
0 commit comments