-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathmne_sys_info.py
66 lines (55 loc) · 1.42 KB
/
mne_sys_info.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
"""Show system information.
Examples
--------
.. code-block:: console
$ mne sys_info
"""
# 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 sys_info")
parser.add_option(
"-p",
"--show-paths",
dest="show_paths",
help="Show module paths",
action="store_true",
)
parser.add_option(
"-d",
"--developer",
dest="developer",
help="Show additional developer module information",
action="store_true",
)
parser.add_option(
"-a",
"--ascii",
dest="unicode",
help="Use ASCII instead of unicode symbols",
action="store_false",
default=True,
)
parser.add_option(
"--no-check-version",
dest="check_version",
help="Disable MNE-Python remote version checking.",
action="store_false",
default=True,
)
options, args = parser.parse_args()
dependencies = "developer" if options.developer else "user"
if len(args) != 0:
parser.print_help()
sys.exit(1)
mne.sys_info(
show_paths=options.show_paths,
dependencies=dependencies,
unicode=options.unicode,
check_version=options.check_version,
)
mne.utils.run_command_if_main()