Skip to content

Commit

Permalink
Merge pull request #78 from d70-t/opendap_optional_chunks
Browse files Browse the repository at this point in the history
opendap driver: make chunks argument optional
  • Loading branch information
martindurant authored Sep 25, 2020
2 parents 1cdac00 + a140fd6 commit a654542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intake_xarray/opendap.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class OpenDapSource(DataSourceMixin):
----------
urlpath: str
Path to source file.
chunks: int or dict
chunks: None, int or dict
Chunks is used to load the new dataset into dask
arrays. ``chunks={}`` loads the dataset with dask using a single
chunk for all arrays.
Expand All @@ -39,7 +39,7 @@ class OpenDapSource(DataSourceMixin):
"""
name = 'opendap'

def __init__(self, urlpath, chunks, auth=None, xarray_kwargs=None, metadata=None,
def __init__(self, urlpath, chunks=None, auth=None, xarray_kwargs=None, metadata=None,
**kwargs):
self.urlpath = urlpath
self.chunks = chunks
Expand Down

0 comments on commit a654542

Please sign in to comment.