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, or None

If not None, override default verbose level (see mne.verbose() and Logging documentation for more). If used, it should be passed as a keyword-argument only.

Returns
fname_outstr

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

Examples using mne.viz.compare_fiff