@@ -300,6 +300,7 @@ def __init__(
300
300
tmin ,
301
301
tmax ,
302
302
picks ,
303
+ exclude ,
303
304
proj ,
304
305
remove_dc ,
305
306
* ,
@@ -348,7 +349,9 @@ def __init__(
348
349
349
350
# prep times and picks
350
351
self ._time_mask = _time_mask (inst .times , tmin , tmax , sfreq = self .sfreq )
351
- self ._picks = _picks_to_idx (inst .info , picks , "data" , with_ref_meg = False )
352
+ self ._picks = _picks_to_idx (
353
+ inst .info , picks , "data" , exclude , with_ref_meg = False
354
+ )
352
355
353
356
# add the info object. bads and non-data channels were dropped by
354
357
# _picks_to_idx() so we update the info accordingly:
@@ -1081,6 +1084,7 @@ class Spectrum(BaseSpectrum):
1081
1084
%(fmin_fmax_psd)s
1082
1085
%(tmin_tmax_psd)s
1083
1086
%(picks_good_data_noref)s
1087
+ %(exclude_psd)s
1084
1088
%(proj_psd)s
1085
1089
%(remove_dc)s
1086
1090
%(reject_by_annotation_psd)s
@@ -1122,6 +1126,7 @@ def __init__(
1122
1126
tmin ,
1123
1127
tmax ,
1124
1128
picks ,
1129
+ exclude ,
1125
1130
proj ,
1126
1131
remove_dc ,
1127
1132
reject_by_annotation ,
@@ -1145,6 +1150,7 @@ def __init__(
1145
1150
tmin ,
1146
1151
tmax ,
1147
1152
picks ,
1153
+ exclude ,
1148
1154
proj ,
1149
1155
remove_dc ,
1150
1156
n_jobs = n_jobs ,
@@ -1290,6 +1296,7 @@ class EpochsSpectrum(BaseSpectrum, GetEpochsMixin):
1290
1296
%(fmin_fmax_psd)s
1291
1297
%(tmin_tmax_psd)s
1292
1298
%(picks_good_data_noref)s
1299
+ %(exclude_psd)s
1293
1300
%(proj_psd)s
1294
1301
%(remove_dc)s
1295
1302
%(n_jobs)s
@@ -1327,6 +1334,7 @@ def __init__(
1327
1334
tmin ,
1328
1335
tmax ,
1329
1336
picks ,
1337
+ exclude ,
1330
1338
proj ,
1331
1339
remove_dc ,
1332
1340
* ,
@@ -1347,6 +1355,7 @@ def __init__(
1347
1355
tmin ,
1348
1356
tmax ,
1349
1357
picks ,
1358
+ exclude ,
1350
1359
proj ,
1351
1360
remove_dc ,
1352
1361
n_jobs = n_jobs ,
@@ -1459,6 +1468,7 @@ def average(self, method="mean"):
1459
1468
tmin = None ,
1460
1469
tmax = None ,
1461
1470
picks = None ,
1471
+ exclude = (),
1462
1472
proj = None ,
1463
1473
remove_dc = None ,
1464
1474
reject_by_annotation = None ,
@@ -1561,6 +1571,7 @@ def read_spectrum(fname):
1561
1571
tmin = None ,
1562
1572
tmax = None ,
1563
1573
picks = None ,
1574
+ exclude = (),
1564
1575
proj = None ,
1565
1576
remove_dc = None ,
1566
1577
reject_by_annotation = None ,
0 commit comments