def direct(arguments): if arguments['--f-d']: source = read_file_list(path.abspath(arguments['--f-d'])) error = source[-1][0] source = source[0] else: error = float_err_zero(arguments['-e']) if arguments['-e'] else 0 source = input_a_list() print("source: {}\t\n error: {}".format(str(source), error)) show_result_direct(*average_and_u(source, error))
def get_number_from_str(source_str): source_list = tuple( map(lambda x: float_err_zero(x), filter(lambda x: len(x) >0, map(lambda x: x.strip(), source_str.split(' '))))) return source_list[1:]