Skip to content

Commit

Permalink
add overwrite and verbose params to info.save
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Feb 10, 2025
1 parent e4cc4e2 commit e530fe8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mne/_fiff/meas_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -1935,15 +1935,20 @@ def _repr_html_(self):
info_template = _get_html_template("repr", "info.html.jinja")
return info_template.render(info=self)

def save(self, fname):
@verbose
def save(self, fname, overwrite=False, verbose=None):
"""Write measurement info in fif file.
Parameters
----------
fname : path-like
The name of the file. Should end by ``'-info.fif'``.
%(overwrite)s
.. versionadded:: 1.10
%(verbose)s
"""
write_info(fname, self)
write_info(fname, self, overwrite=overwrite, verbose=verbose)


def _simplify_info(info, *, keep=()):
Expand Down

0 comments on commit e530fe8

Please sign in to comment.