Skip to content

Commit eedc56f

Browse files
committed
[fix] Int conversion from D.badchannels()
1 parent 12adc62 commit eedc56f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spm/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "25.01.beta1.post4"
1+
__version__ = "25.01.beta1.post5"

spm/utils/spm_mne_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def spm_2_mne_raw(D):
180180
bad_channels = D.badchannels()
181181
if len(bad_channels) > 0:
182182
info["bads"] = [
183-
channel_names[i - 1] # python index = matlab index - 1
183+
channel_names[int(i - 1)] # python index = matlab index - 1
184184
for i in bad_channels
185185
]
186186
raw = mne.io.RawArray(data, info)

0 commit comments

Comments
 (0)