From d4d81ab3c365adb93be6be26c7674c859bf8b16d Mon Sep 17 00:00:00 2001 From: Alois Klink <alois.klink@soton.ac.uk> Date: Thu, 30 May 2019 16:57:39 +0100 Subject: [PATCH] Improve progress bar printing Fixes typos and new line bugs --- chimet-scraper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chimet-scraper.py b/chimet-scraper.py index 1563229..81d8325 100644 --- a/chimet-scraper.py +++ b/chimet-scraper.py @@ -260,7 +260,7 @@ def make_csv(location: Locations, output_loc = output_dir / output_filename combine_csvs(file_name_list, output_loc) - print(f"Made a CSV of {location} from date " + tqdm.tqdm.write(f"Made a CSV of {location} from date " f"{from_time.date()} to {to_time.date()} at {output_loc}") def download_all(): @@ -281,7 +281,7 @@ def main(args): pbar = tqdm.tqdm(Locations, desc=("Iterating over " f"{[x.value for x in Locations]}")) for loc in pbar: - pbar.set_description(f"Donwloading {loc.value} data.") + pbar.set_description(f"Downloading {loc.value} data.") make_csv(loc, **kwargs) if __name__ == "__main__": -- GitLab