initial commit

This commit is contained in:
2025-08-19 09:13:22 -07:00
parent 28464811d6
commit 0977a3e14d
820 changed files with 1003358 additions and 2 deletions

View File

@@ -0,0 +1,38 @@
"""Show measurement info from .fif file.
Examples
--------
.. code-block:: console
$ mne show_info sample_audvis_raw.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 show_info <file>")
options, args = parser.parse_args()
if len(args) != 1:
parser.print_help()
sys.exit(1)
fname = args[0]
if not fname.endswith(".fif"):
raise ValueError(f"{fname} does not seem to be a .fif file.")
info = mne.io.read_info(fname)
print(f"File : {fname}")
print(info)
mne.utils.run_command_if_main()