From c3e138036ebd73cbe71bf48fe82e15afaedb95cb Mon Sep 17 00:00:00 2001 From: Shiqi Fang Date: Mon, 22 Apr 2024 14:01:11 -0400 Subject: [PATCH] Update core.py --- skdownscale/pointwise_models/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skdownscale/pointwise_models/core.py b/skdownscale/pointwise_models/core.py index aa5f232..9f33557 100644 --- a/skdownscale/pointwise_models/core.py +++ b/skdownscale/pointwise_models/core.py @@ -62,10 +62,10 @@ def _fit_wrapper(X, *args, along_dim='time', feature_dim=DEFAULT_FEATURE_DIM, ** # create the empty output array models = xr.DataArray( - np.full(mask.shape, None, dtype=np.object), coords=mask.coords, dims=mask.dims + np.full(mask.shape, None, dtype=object), coords=mask.coords, dims=mask.dims ) - scalar_obj = np.empty((1), dtype=np.object) + scalar_obj = np.empty((1), dtype=object) for index, val in xenumerate(mask): mod = copy.deepcopy(model) if not val: