Commit 3e2692b7 authored by Franco Mele's avatar Franco Mele
Browse files

corretto un errore sull'assenza di un token

parent faf7ff6f
......@@ -203,12 +203,17 @@ def main():
print("NULL")
deperr = 5.0
if(event["origin"].get("originUncertainty")):
if(event["origin"]["originUncertainty"].get("horizontalUncertainty")):
errh = float(event["origin"]["originUncertainty"]["horizontalUncertainty"]) / 1000.0 # da metri a km
print("horiz. uncert: ", errh)
else:
print("NULL")
errh = 5.0
else:
errh = 5.0
if(event["origin"]["quality"].get("usedStationCount")):
usedsta = float(event["origin"]["quality"]["usedStationCount"])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment