From 0d0cbb04216959abe423f7be7367552c0bc716f1 Mon Sep 17 00:00:00 2001 From: Pascal Bourgault Date: Mon, 29 Jan 2024 14:48:23 -0500 Subject: [PATCH] Fix robustness tests doc generation --- xclim/ensembles/_robustness.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xclim/ensembles/_robustness.py b/xclim/ensembles/_robustness.py index 0c15befdb..ce8d564c1 100644 --- a/xclim/ensembles/_robustness.py +++ b/xclim/ensembles/_robustness.py @@ -649,7 +649,7 @@ def _gen_test_entry(namefunc): return f"\t{name}:\n\t\t{doc}" -change_significance.__doc__ = change_significance.__doc__.format( +robustness_fractions.__doc__ = robustness_fractions.__doc__.format( tests_list="{" + ", ".join(list(SIGNIFICANCE_TESTS.keys()) + ["threshold"]) + "}", tests_doc="\n".join(map(_gen_test_entry, SIGNIFICANCE_TESTS.items())), )