Skip to content

Commit 7e7d522

Browse files
authored
BUG: Fix deprecated API usage in example (mne-tools#11512)
1 parent 0efe50b commit 7e7d522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/visualization/3d_to_2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
# lt.save(layout_path / layout_name) # save if we want
123123

124124
# # We've already got the layout, load it
125-
lt = mne.channels.read_layout(layout_name, path=layout_path, scale=False)
125+
lt = mne.channels.read_layout(layout_path / layout_name, scale=False)
126126
x = lt.pos[:, 0] * float(im.shape[1])
127127
y = (1 - lt.pos[:, 1]) * float(im.shape[0]) # Flip the y-position
128128
fig, ax = plt.subplots()

0 commit comments

Comments
 (0)