diff --git a/utils/parset_concat.py b/utils/parset_concat.py index cc4e598392864a6b036aca098c0d50e1542033e8..fd5f5e88d3795a24ae968c157756640949e73720 100755 --- a/utils/parset_concat.py +++ b/utils/parset_concat.py @@ -19,10 +19,10 @@ def parse_arguments(args): def main(args): arguments = parse_arguments(args) - concatenate(arguments.input_parset, - arguments.step_name, - arguments.step_type, - arguments.step_arguments) + concatenate_file(arguments.input_parset, + arguments.step_name, + arguments.step_type, + arguments.step_arguments) def concatenate(lines, step_name, step_type, step_args): @@ -65,10 +65,9 @@ def concatenate(lines, step_name, step_type, step_args): def concatenate_file(parsetfile, step_name, step_type, args): - print(args) if parsetfile and os.path.exists(parsetfile): - with open(parsetfile, "r") as f_stream: - concatenate(f_stream.read().splitlines(), step_name, step_type, args) + with open(parsetfile, "r") as f_stream: + concatenate(f_stream.read().splitlines(), step_name, step_type, args) if __name__=='__main__':