Skip to content

Commit 32c9a2e

Browse files
committed
fix: handle mismatched dim lengths during rechunking (take 2)
1 parent 2e445cf commit 32c9a2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atlite/pv/solar_position.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def SolarPosition(ds, time_shift="0H"):
7777

7878
# Operations make new DataArray eager; reconvert to lazy dask arrays
7979
chunks = ds.chunksizes.get("time", "auto")
80-
if n.ndim == 1:
80+
if isinstance(chunks, tuple):
8181
chunks = chunks[0]
8282
n = n.chunk(chunks)
8383
hour = hour.chunk(chunks)

0 commit comments

Comments
 (0)