Skip to content

Commit

Permalink
fix: #381
Browse files Browse the repository at this point in the history
  • Loading branch information
lkstrp committed Oct 28, 2024
1 parent 1e42c17 commit 30823e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions atlite/pv/solar_position.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ def SolarPosition(ds, time_shift="0H"):

# Operations make new DataArray eager; reconvert to lazy dask arrays
chunks = ds.chunksizes.get("time", "auto")
if n.ndim == 1:
chunks = chunks[0]
n = n.chunk(chunks)
hour = hour.chunk(chunks)
minute = minute.chunk(chunks)
Expand Down

0 comments on commit 30823e0

Please sign in to comment.