try-except around all_country-plotting
This commit is contained in:
@@ -23,6 +23,7 @@ def plot(data, countries, pop):
|
||||
figsize = (10,5)
|
||||
|
||||
for loc in data:
|
||||
try:
|
||||
if loc == "International":
|
||||
continue
|
||||
name = basename+loc
|
||||
@@ -111,3 +112,5 @@ def plot(data, countries, pop):
|
||||
|
||||
pp.savefig("ac_"+name+".png")
|
||||
pp.close(fig)
|
||||
except Exception as e:
|
||||
print(f"=====> plotting failed for {loc}, skipping plot. Error: {e}")
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
|
||||
<h4>Idee</h4>
|
||||
Automatisierte Übersichtsplots für die ganze Welt, analog zu <a href=https://covh.github.io/cov19de/>dieser Seite</a>.
|
||||
Automatisierte Übersichtsplots für die ganze Welt, analog zu <a href=https://covh.github.io/cov19de/pages/Deutschland.html>dieser Seite</a>.
|
||||
<br><br>
|
||||
Achtung: Die hier dargestellten Daten sind zwischen den Ländern kaum vergleichbar, da überall unterschiedliche Kriterien für Testung, Zählung und Meldung von Daten existieren.
|
||||
Ohne genaue Kenntnis der Situationen in den einzelnen Ländern ist ein aussagekräftiger Vergleich <b>nicht möglich</b>!
|
||||
|
||||
Reference in New Issue
Block a user