Skip to content

Commit 91e6e7c

Browse files
authored
fix: handle mismatched dim lengths during rechunking (take 2) (#423)
Co-authored-by: Jonas Hoersch <[email protected]>
1 parent e75eb42 commit 91e6e7c

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)