Commit c585c5a4 authored by Nils Brinckmann's avatar Nils Brinckmann Committed by Graeme Weatherill
Browse files

Compute IQR more manual

parent 5e6359a6
Pipeline #36141 failed with stage
in 13 minutes and 26 seconds
......@@ -258,7 +258,8 @@ def shakemaps_from_quakeml(
"maximum": np.exp(np.max(mean_shakemaps[imt])),
"median": np.exp(np.mean(mean_shakemaps[imt])),
"minimum": np.exp(np.min(mean_shakemaps[imt])),
"IQR": stats.iqr(mean_shakemaps[imt]),
"IQR": np.exp(np.quantile(mean_shakemaps[imt], 0.75))
- np.exp(np.quantile(mean_shakemaps[imt], 0.25)),
}
if export_folder:
filestem = "{:s}_{:s}".format(results.earthquake.id, imt)
......
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