Skip to content

Commit 230165d

Browse files
spjuhelpeanutfun
andauthored
Update climada/hazard/xarray.py
Co-authored-by: Lukas Riedel <34276446+peanutfun@users.noreply.github.com>
1 parent 6ab113d commit 230165d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

climada/hazard/xarray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _to_csr_matrix(array: xr.DataArray) -> sparse.csr_matrix:
6060
sparse_coo = array.compute().data # Load into memory
6161
return sparse.csr_matrix(
6262
sparse_coo.tocsr()
63-
) # Convert sparse.COO to scipy.sparse.csr_array
63+
) # Convert sparse.COO to scipy.sparse.csr_matrix
6464

6565

6666
# Define accessors for xarray DataArrays

0 commit comments

Comments
 (0)