def float_array(string_input): try: output_tuple = match_array(string_input, 'float') except ValueError: raise argparse.ArgumentTypeError( 'array of float expected, received {}'.format(string_input)) return output_tuple
def float_array(string_input): try: output_tuple = match_array(string_input, 'float') except ValueError: raise argparse.ArgumentTypeError( 'array of float expected, received {}'.format(string_input)) return output_tuple
def str_array(string_input): try: output_tuple = match_array(string_input, 'str') except ValueError: raise argparse.ArgumentTypeError( "list of strings expected, for each list element the allowed" "characters: [ a-zA-Z0-9], but received {}".format(string_input)) return output_tuple
def str_array(string_input): try: output_tuple = match_array(string_input, 'str') except ValueError: raise argparse.ArgumentTypeError( "list of strings expected, for each list element the allowed" "characters: [ a-zA-Z0-9_\-], but received {}".format(string_input)) return output_tuple
def float_array(string_input): """ convert input into a tuple of float values :param string_input: :return: """ try: output_tuple = match_array(string_input, 'float') except ValueError: raise argparse.ArgumentTypeError( 'array of float expected, received {}'.format(string_input)) return output_tuple
def float_array(string_input): """ convert input into a tuple of float values :param string_input: :return: """ try: output_tuple = match_array(string_input, 'float') except ValueError: raise argparse.ArgumentTypeError( 'array of float expected, received {}'.format(string_input)) return output_tuple