Skip to content

Commit a654542

Browse files
authored
Merge pull request #78 from d70-t/opendap_optional_chunks
opendap driver: make chunks argument optional
2 parents 1cdac00 + a140fd6 commit a654542

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

intake_xarray/opendap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class OpenDapSource(DataSourceMixin):
2222
----------
2323
urlpath: str
2424
Path to source file.
25-
chunks: int or dict
25+
chunks: None, int or dict
2626
Chunks is used to load the new dataset into dask
2727
arrays. ``chunks={}`` loads the dataset with dask using a single
2828
chunk for all arrays.
@@ -39,7 +39,7 @@ class OpenDapSource(DataSourceMixin):
3939
"""
4040
name = 'opendap'
4141

42-
def __init__(self, urlpath, chunks, auth=None, xarray_kwargs=None, metadata=None,
42+
def __init__(self, urlpath, chunks=None, auth=None, xarray_kwargs=None, metadata=None,
4343
**kwargs):
4444
self.urlpath = urlpath
4545
self.chunks = chunks

0 commit comments

Comments
 (0)