Skip to content

Commit 0d2f548

Browse files
Llorenc LledoLlorenc Lledo
Llorenc Lledo
authored and
Llorenc Lledo
committed
Correct two indentation errors
1 parent 88c0726 commit 0d2f548

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

xarray/core/computation.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -1366,10 +1366,10 @@ def cov(
13661366
)
13671367
if weights is not None:
13681368
if not isinstance(weights, DataArray):
1369-
raise TypeError(
1370-
"Only xr.DataArray is supported."
1371-
f"Given {type(weights)}."
1372-
)
1369+
raise TypeError(
1370+
"Only xr.DataArray is supported."
1371+
f"Given {type(weights)}."
1372+
)
13731373
return _weighted_cov_corr(da_a, da_b, weights=weights, dim=dim, ddof=ddof, method="cov")
13741374
else
13751375
return _cov_corr(da_a, da_b, dim=dim, ddof=ddof, method="cov")
@@ -1458,10 +1458,10 @@ def corr(da_a: T_DataArray,
14581458

14591459
if weights is not None:
14601460
if not isinstance(weights, DataArray):
1461-
raise TypeError(
1462-
"Only xr.DataArray is supported."
1463-
f"Given {type(weights)}."
1464-
)
1461+
raise TypeError(
1462+
"Only xr.DataArray is supported."
1463+
f"Given {type(weights)}."
1464+
)
14651465
return _weighted_cov_corr(da_a, da_b, weights=weights, dim=dim, method="corr")
14661466
else
14671467
return _cov_corr(da_a, da_b, dim=dim, method="corr")

0 commit comments

Comments
 (0)