Skip to content

Commit

Permalink
don't chunk if dask is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis committed Mar 30, 2020
1 parent b5e4ad7 commit fa37ee6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xarray/backends/zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,12 @@ def open_zarr(
"Instead found %s. " % chunks
)

if chunks == "auto":
try:
import dask.array # noqa
except ImportError:
chunks = None

if not decode_cf:
mask_and_scale = False
decode_times = False
Expand Down

0 comments on commit fa37ee6

Please sign in to comment.