mne.viz.compare_fiff

mne.viz.compare_fiff(fname_1, fname_2, fname_out=None, show=True, indent='    ', read_limit=inf, max_str=30, verbose=None)[source]

Compare the contents of two fiff files using diff and show_fiff.

Parameters
fname_1str

First file to compare.

fname_2str

Second file to compare.

fname_outstr | None

Filename to store the resulting diff. If None, a temporary file will be created.

showbool

If True, show the resulting diff in a new tab in a web browser.

indentstr

How to indent the lines.

read_limitint

Max number of bytes of data to read from a tag. Can be np.inf to always read all data (helps test read completion).

max_strint

Max number of characters of string representation to print for each tag’s data.

verbosebool | str | int | None

Control verbosity of the logging output. If None, use the default verbosity level. See the logging documentation and mne.verbose() for details. Should only be passed as a keyword argument.

Returns
fname_outstr

The filename used for storing the diff. Could be useful for when a temporary file is used.