Skip to content

Commit aad1a61

Browse files
authored
Merge pull request #170 from opendatacube/Fix-for_issue_169
Better focused test for dask arrays.
2 parents c1585d3 + 7c15b00 commit aad1a61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

odc/geo/math.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from affine import Affine
2727
from numpy.polynomial.polynomial import polygrid2d, polyval2d
2828

29+
from ._interop import is_dask_collection
2930
from .types import (
3031
XY,
3132
AnchorEnum,
@@ -286,7 +287,7 @@ def data_resolution_and_offset(
286287
287288
:returns: ``(resolution, offset)``
288289
"""
289-
if not isinstance(data, np.ndarray):
290+
if is_dask_collection(data):
290291
data = data.values
291292

292293
if data.size < 2:

0 commit comments

Comments
 (0)