From e749c21cc08fa43c7ade63ff61e81777528b4b47 Mon Sep 17 00:00:00 2001 From: fordprefect Date: Mon, 2 May 2022 10:20:38 +0200 Subject: [PATCH] stop archiving (upstream has), cut boundaries for countries --- all_countries.py | 6 +++--- coronavis.py | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/all_countries.py b/all_countries.py index 8b6be3e..b09e90b 100644 --- a/all_countries.py +++ b/all_countries.py @@ -11,15 +11,15 @@ warnings.filterwarnings("ignore", category=UserWarning) basename="all_" # manual y adjustments for new cases -corr = {"Chile": 10000, +corr = {#"Chile": 10000, "China": 4000, "Ecuador": 3000, "Kazakhstan": 5000, "Kyrgyzstan": 2200, "Peru": 15000, - "Bolivia": 3000, + #"Bolivia": 3000, "Yemen": 220, - "Spain": 40000, + #"Spain": 40000, } def plot(data, countries, pop, metadata={}, **kwargs): diff --git a/coronavis.py b/coronavis.py index efbd8b8..63d5148 100644 --- a/coronavis.py +++ b/coronavis.py @@ -89,14 +89,14 @@ def get_data(): f.write(r.content) ## file archiving: include error log just in case… - try: - subprocess.run(["/usr/bin/cp", f"../{date}-full-data.csv", "data.csv"], cwd="/srv/http/dukun.de/corona/data/git") - subprocess.run(["/usr/bin/git", "commit", "-a", f"-m {date}"], cwd="/srv/http/dukun.de/corona/data/git") - subprocess.run(["/usr/bin/git", "push"], cwd="/srv/http/dukun.de/corona/data/git") - except Exception as e: - print(f"File archiving failed with {e} - need for debugging here…") - print(e.with_traceback) - print("\n\n\ncontinuing…\n") + #try: + # subprocess.run(["/usr/bin/cp", f"../{date}-full-data.csv", "data.csv"], cwd="/srv/http/dukun.de/corona/data/git") + # subprocess.run(["/usr/bin/git", "commit", "-a", f"-m {date}"], cwd="/srv/http/dukun.de/corona/data/git") + # subprocess.run(["/usr/bin/git", "push"], cwd="/srv/http/dukun.de/corona/data/git") + #except Exception as e: + # print(f"File archiving failed with {e} - need for debugging here…") + # print(e.with_traceback) + # print("\n\n\ncontinuing…\n") else: