From 897e612fb7de91ebb63c9e3a63fe58656709c569 Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Sat, 25 Nov 2023 13:09:43 -0800 Subject: [PATCH] Refine rolling_exp error messages (Sorry, copy & pasted too liberally!) --- xarray/core/rolling_exp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xarray/core/rolling_exp.py b/xarray/core/rolling_exp.py index 1e4b805208f..144e26a86b2 100644 --- a/xarray/core/rolling_exp.py +++ b/xarray/core/rolling_exp.py @@ -227,7 +227,7 @@ def var(self) -> T_DataWithCoords: """ if pycompat.mod_version("numbagg") < Version("0.4.0"): raise ImportError( - f"numbagg >= 0.4.0 is required for rolling_exp().std(), currently {pycompat.mod_version('numbagg')} is installed" + f"numbagg >= 0.4.0 is required for rolling_exp().var(), currently {pycompat.mod_version('numbagg')} is installed" ) dim_order = self.obj.dims import numbagg @@ -260,7 +260,7 @@ def cov(self, other: T_DataWithCoords) -> T_DataWithCoords: if pycompat.mod_version("numbagg") < Version("0.4.0"): raise ImportError( - f"numbagg >= 0.4.0 is required for rolling_exp().std(), currently {pycompat.mod_version('numbagg')} is installed" + f"numbagg >= 0.4.0 is required for rolling_exp().cov(), currently {pycompat.mod_version('numbagg')} is installed" ) dim_order = self.obj.dims import numbagg @@ -294,7 +294,7 @@ def corr(self, other: T_DataWithCoords) -> T_DataWithCoords: if pycompat.mod_version("numbagg") < Version("0.4.0"): raise ImportError( - f"numbagg >= 0.4.0 is required for rolling_exp().std(), currently {pycompat.mod_version('numbagg')} is installed" + f"numbagg >= 0.4.0 is required for rolling_exp().corr(), currently {pycompat.mod_version('numbagg')} is installed" ) dim_order = self.obj.dims import numbagg