niftynet.utilities.user_parameters_parser module

Parse user configuration file

available_keywords()[source]

returns a list of all possible keywords defined in the parsers (duplicates from sections are removed.)

run()[source]

meta_parser is first used to find out location of the configuration file. Based on the application_name or meta_parser.prog name, the section parsers are organised to find system parameters and application specific parameters.

Returns:system parameters is a group of parameters including SYSTEM_SECTIONS and app_module.REQUIRED_CONFIG_SECTION input_data_args is a group of input data sources to be used by niftynet.io.ImageReader