initial commit
This commit is contained in:
32
mne/commands/mne_compare_fiff.py
Normal file
32
mne/commands/mne_compare_fiff.py
Normal file
@@ -0,0 +1,32 @@
|
||||
"""Compare FIFF files.
|
||||
|
||||
Examples
|
||||
--------
|
||||
.. code-block:: console
|
||||
|
||||
$ mne compare_fiff test_raw.fif test_raw_sss.fif
|
||||
|
||||
"""
|
||||
|
||||
# Authors: The MNE-Python contributors.
|
||||
# License: BSD-3-Clause
|
||||
# Copyright the MNE-Python contributors.
|
||||
|
||||
import sys
|
||||
|
||||
import mne
|
||||
|
||||
|
||||
def run():
|
||||
"""Run command."""
|
||||
parser = mne.commands.utils.get_optparser(
|
||||
__file__, usage="mne compare_fiff <file_a> <file_b>"
|
||||
)
|
||||
options, args = parser.parse_args()
|
||||
if len(args) != 2:
|
||||
parser.print_help()
|
||||
sys.exit(1)
|
||||
mne.viz.compare_fiff(args[0], args[1])
|
||||
|
||||
|
||||
mne.utils.run_command_if_main()
|
||||
Reference in New Issue
Block a user