From 7814ba45977a58e524b77dc6b111afbcf121ffbb Mon Sep 17 00:00:00 2001 From: CodyCBakerPhD Date: Wed, 21 Aug 2024 23:09:59 -0400 Subject: [PATCH] enhance README with time estimates; properly time the writing of start/stop for binning --- .../_bin_all_reduced_s3_logs_by_object_key.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dandi_s3_log_parser/_bin_all_reduced_s3_logs_by_object_key.py b/src/dandi_s3_log_parser/_bin_all_reduced_s3_logs_by_object_key.py index 64b4977..21b3522 100644 --- a/src/dandi_s3_log_parser/_bin_all_reduced_s3_logs_by_object_key.py +++ b/src/dandi_s3_log_parser/_bin_all_reduced_s3_logs_by_object_key.py @@ -65,7 +65,7 @@ def bin_all_reduced_s3_logs_by_object_key( ): if reduced_s3_log_file.stat().st_size == 0: with open(file=started_tracking_file_path, mode="a") as io: - io.write(f"{reduced_s3_log_file}: 1\n") + io.write(f"{reduced_s3_log_file}\n") with open(file=completed_tracking_file_path, mode="a") as io: io.write(f"{reduced_s3_log_file}\n") @@ -88,7 +88,7 @@ def bin_all_reduced_s3_logs_by_object_key( del binned_data_frame with open(file=started_tracking_file_path, mode="a") as io: - io.write(f"{reduced_s3_log_file}: 1\n") + io.write(f"{reduced_s3_log_file}\n") for object_key, data in tqdm.tqdm( iterable=object_keys_to_data.items(),