niftynet.utilities.user_parameters_helper module

niftynet.utilities.user_parameters_helper.add_input_name_args(parser, supported_input)
niftynet.utilities.user_parameters_helper.float_array(string_input)
niftynet.utilities.user_parameters_helper.has_section_in_config(config, required_custom_section)
niftynet.utilities.user_parameters_helper.int_array(string_input)
niftynet.utilities.user_parameters_helper.make_input_tuple(input_str, element_type=(<type 'basestring'>, ))
niftynet.utilities.user_parameters_helper.spatialnumarray(string_input)

This function parses a 3-element tuple from a string input

niftynet.utilities.user_parameters_helper.standardise_section_name(configparser, old_name)

rename configparser section This helper is useful when user specifies complex section names

niftynet.utilities.user_parameters_helper.standardise_string(input_string)

to make the user’s input consistent replace any characters not in set [0-9a-zA-Z] with underscrore _

Parameters:input_string – to be standardised
Returns:capitalised string
niftynet.utilities.user_parameters_helper.str2boolean(string_input)

convert user input config string to boolean :param string_input: any string in TRUE_VALUE or FALSE_VALUE :return: True or False

niftynet.utilities.user_parameters_helper.str_array(string_input)