Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harmonize position of sensors in layout for MEGIN systems #12342

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions mne/channels/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, box, pos, names, ids, kind):
self.ids = ids
self.kind = kind

def save(self, fname, overwrite=False):
def save(self, fname, *, overwrite=False):
"""Save Layout to disk.

Parameters
Expand All @@ -89,7 +89,7 @@ def save(self, fname, overwrite=False):
elif fname.suffix == ".lay":
out_str = ""
else:
raise ValueError("Unknown layout type. Should be of type " ".lout or .lay.")
raise ValueError("Unknown layout type. Should be of type .lout or .lay.")

for ii in range(x.shape[0]):
out_str += "%03d %8.2f %8.2f %8.2f %8.2f %s\n" % (
Expand Down