Skip to content

Commit

Permalink
drops back to %.2f
Browse files Browse the repository at this point in the history
  • Loading branch information
mscheltienne committed Jan 9, 2024
1 parent b4c75c0 commit e3fc7ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mne/channels/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ def save(self, fname, *, overwrite=False):
height = self.pos[:, 3]
fname = _check_fname(fname, overwrite=overwrite, name=fname)
if fname.suffix == ".lout":
out_str = "%8.6f %8.6f %8.6f %8.6f\n" % self.box
out_str = "%8.2f %8.2f %8.2f %8.2f\n" % self.box
elif fname.suffix == ".lay":
out_str = ""
else:
raise ValueError("Unknown layout type. Should be of type .lout or .lay.")

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

0 comments on commit e3fc7ed

Please sign in to comment.