Spaces:
Running
Running
Download python_embed/Lib/site-packages/mne/commands/mne_what.py from Aluode/PerceptionLabPortable: direct link, hf CLI and curl.
- Browser
- Download file 527 Bytes
-
https://huggingface.co/spaces/Aluode/PerceptionLabPortable/resolve/main/python_embed/Lib/site-packages/mne/commands/mne_what.py
- Command line
-
hf download hf://spaces/Aluode/PerceptionLabPortable/python_embed/Lib/site-packages/mne/commands/mne_what.py
-
curl -L -o mne_what.py https://huggingface.co/spaces/Aluode/PerceptionLabPortable/resolve/main/python_embed/Lib/site-packages/mne/commands/mne_what.py
527 Bytes
| r"""Check type of FIF file. | |
| Examples | |
| -------- | |
| .. code-block:: console | |
| $ mne what sample_audvis_raw.fif | |
| raw | |
| """ | |
| # Authors: The MNE-Python contributors. | |
| # License: BSD-3-Clause | |
| # Copyright the MNE-Python contributors. | |
| import mne | |
| def run(): | |
| """Run command.""" | |
| from mne.commands.utils import get_optparser | |
| parser = get_optparser(__file__, usage="usage: %prog fname [fname2 ...]") | |
| options, args = parser.parse_args() | |
| for arg in args: | |
| print(mne.what(arg)) | |
| mne.utils.run_command_if_main() | |