stop archiving (upstream has), cut boundaries for countries
This commit is contained in:
@@ -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):
|
||||
|
||||
16
coronavis.py
16
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:
|
||||
|
||||
Reference in New Issue
Block a user