module_arguments
Define arguments for each of the modules' CLI sub-parsers.
AllChoicesDefault
Bases: Action
Customised argparse action for defaulting to the full list of choices if only the argument's flag is supplied:
(i.e. user passes --metrics
with no follow up list of metric groups => all metric groups will be executed).
Notes
1) If no option_string
is supplied: set to default value (self.default
)
2) If option_string
is supplied:
a) If values
are supplied, set to list of values
b) If no values
are supplied, set to self.const
, if self.const
is not set, set to self.default
Source code in src/nhssynth/cli/module_arguments.py
add_dataloader_args(parser, group_title, overrides=False)
Adds arguments to an existing dataloader module sub-parser instance.
Source code in src/nhssynth/cli/module_arguments.py
add_evaluation_args(parser, group_title, overrides=False)
Adds arguments to an existing evaluation module sub-parser instance.
Source code in src/nhssynth/cli/module_arguments.py
add_model_args(parser, group_title, overrides=False)
Adds arguments to an existing model module sub-parser instance.
Source code in src/nhssynth/cli/module_arguments.py
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
|
add_plotting_args(parser, group_title, overrides=False)
Adds arguments to an existing plotting module sub-parser instance.