This commit is contained in:
Starbeamrainbowlabs 2022-10-10 18:12:51 +01:00
parent 131c0a0a5b
commit 5666c5a0d9
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -111,7 +111,7 @@ def run(args):
i_file = 0 i_file = 0
handle.close() handle.close()
logger.info(f"PROGRESS:file {files_done}") logger.info(f"PROGRESS:file {files_done}")
handle = handle_open_modeset(filepath_output.replace("+d", str(files_done+1)), write_mode, hand_mode=output_mode) handle = handle_open_modeset(filepath_output.replace("+d", str(files_done+1)), write_mode, handle_mode=output_mode)
if output_mode == MODE_JSONL: if output_mode == MODE_JSONL:
handle.write(json.dumps(step_rainfall.numpy().tolist(), separators=(',', ':'))+"\n") # Ref https://stackoverflow.com/a/64710892/1460422 handle.write(json.dumps(step_rainfall.numpy().tolist(), separators=(',', ':'))+"\n") # Ref https://stackoverflow.com/a/64710892/1460422