Run command.
()
| 18 | |
| 19 | |
| 20 | def run(): |
| 21 | """Run command.""" |
| 22 | from mne.commands.utils import _add_verbose_flag, get_optparser |
| 23 | |
| 24 | parser = get_optparser(__file__) |
| 25 | |
| 26 | parser.add_option( |
| 27 | "-d", |
| 28 | "--subjects-dir", |
| 29 | dest="subjects_dir", |
| 30 | default=None, |
| 31 | help="Subjects directory", |
| 32 | ) |
| 33 | parser.add_option( |
| 34 | "-s", "--subject", dest="subject", default=None, help="Subject name" |
| 35 | ) |
| 36 | parser.add_option( |
| 37 | "-f", |
| 38 | "--fiff", |
| 39 | dest="inst", |
| 40 | default=None, |
| 41 | help="FIFF file with digitizer data for coregistration", |
| 42 | ) |
| 43 | parser.add_option( |
| 44 | "--head-opacity", |
| 45 | type=float, |
| 46 | default=None, |
| 47 | dest="head_opacity", |
| 48 | help="The opacity of the head surface, in the range [0, 1].", |
| 49 | ) |
| 50 | parser.add_option( |
| 51 | "--high-res-head", |
| 52 | action="store_true", |
| 53 | default=False, |
| 54 | dest="high_res_head", |
| 55 | help="Use a high-resolution head surface.", |
| 56 | ) |
| 57 | parser.add_option( |
| 58 | "--low-res-head", |
| 59 | action="store_true", |
| 60 | default=False, |
| 61 | dest="low_res_head", |
| 62 | help="Use a low-resolution head surface.", |
| 63 | ) |
| 64 | parser.add_option( |
| 65 | "--trans", |
| 66 | dest="trans", |
| 67 | default=None, |
| 68 | help='Head<->MRI transform FIF file ("-trans.fif")', |
| 69 | ) |
| 70 | parser.add_option( |
| 71 | "--interaction", |
| 72 | type=str, |
| 73 | default=None, |
| 74 | dest="interaction", |
| 75 | help='Interaction style to use, can be "trackball" or "terrain".', |
| 76 | ) |
| 77 | _add_verbose_flag(parser) |
nothing calls this directly
no test coverage detected