Skip to content

Commit

Permalink
Merge pull request #492 from Ouranosinc/ensembles_attrs_fix
Browse files Browse the repository at this point in the history
Minor fix - ensembles.ensemble_statistics attributes
  • Loading branch information
aulemahal authored Jun 26, 2020
2 parents d9ab756 + 89e8453 commit f907237
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xclim/ensembles.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,9 @@ def ensemble_percentiles(
for p, perc in out.data_vars.items():
perc.attrs.update(ens.attrs)
perc.attrs["description"] = (
perc.attrs.get("descrption", "") + " {p}th percentile of ensemble."
perc.attrs.get("description", "") + f" {p}th percentile of ensemble."
)
out[p] = perc
out = out.rename(name_dict={p: f"{ens.name}_p{int(p):02d}"})

out.attrs["history"] = update_history(
Expand Down

0 comments on commit f907237

Please sign in to comment.