diff --git a/output_function.py b/output_function.py index 3f6ad10..932393f 100644 --- a/output_function.py +++ b/output_function.py @@ -179,6 +179,6 @@ def output_function(components: list, components_prime: list, sol_x: list, input "warnings": warnings} - with open(stdout.fileno(), encoding="utf-8", closefd=False) as encodedout: + with open(stdout.fileno(), mode='w', encoding="utf8", buffering=1) as encodedout: # outputfile.write(json_object) dump(output_dict, encodedout, ensure_ascii=False, indent = 3)