File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
- import warnings
4
3
from collections .abc import Iterable
5
4
from typing import TYPE_CHECKING , Any
6
5
@@ -166,26 +165,15 @@ def open(
166
165
elif hasattr (url , "ds" ):
167
166
# pydap dataset
168
167
dataset = url .ds
169
- args = {"dataset" : dataset }
170
- args ["checksums" ] = checksums
168
+ args = {"dataset" : dataset , "checksums" : checksums }
171
169
if group :
172
170
args ["group" ] = group
173
171
if url .startswith (("http" , "dap2" )):
174
172
args ["protocol" ] = "dap2"
175
173
elif url .startswith ("dap4" ):
176
174
args ["protocol" ] = "dap4"
177
175
if batch :
178
- if args ["protocol" ] == "dap2" :
179
- warnings .warn (
180
- f"`batch={ batch } ` is currently only compatible with the `DAP4` "
181
- "protocol. Make sue the OPeNDAP server implements the `DAP4` "
182
- "protocol and then replace the scheme of the url with `dap4` "
183
- "to make use of it. Setting `batch=False`." ,
184
- stacklevel = 2 ,
185
- )
186
- else :
187
- # only update if dap4
188
- args ["batch" ] = batch
176
+ args ["batch" ] = batch
189
177
return cls (** args )
190
178
191
179
def open_store_variable (self , var ):
You can’t perform that action at this time.
0 commit comments