File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -5979,15 +5979,14 @@ def test_batchdap4_downloads(protocol, batch) -> None:
5979
5979
session .cache .clear ()
5980
5980
url = "https://test.opendap.org/opendap/hyrax/data/nc/coads_climatology.nc"
5981
5981
5982
- args = {
5983
- "filename_or_obj" : url .replace ("https" , protocol ),
5984
- "engine" : "pydap" ,
5985
- "session" : session ,
5986
- "decode_times" : False ,
5987
- }
5988
-
5989
5982
if protocol == "dap4" :
5990
- ds = open_dataset (** args , batch = batch )
5983
+ ds = open_dataset (
5984
+ url .replace ("https" , protocol ),
5985
+ engine = "pydap" ,
5986
+ session = session ,
5987
+ decode_times = False ,
5988
+ batch = batch ,
5989
+ )
5991
5990
if _version_ > Version ("3.5.5" ):
5992
5991
# total downloads are:
5993
5992
# 1 dmr + 1 dap (dimensions)
@@ -6006,9 +6005,13 @@ def test_batchdap4_downloads(protocol, batch) -> None:
6006
6005
ds .load ()
6007
6006
assert len (session .cache .urls ()) == 4 + 4
6008
6007
elif protocol == "dap2" :
6009
- ds = open_dataset (** args )
6008
+ ds = open_dataset (
6009
+ url .replace ("https" , protocol ),
6010
+ engine = "pydap" ,
6011
+ session = session ,
6012
+ decode_times = False ,
6013
+ )
6010
6014
# das + dds + 3 dods urls
6011
-
6012
6015
assert len (session .cache .urls ()) == 5
6013
6016
6014
6017
You can’t perform that action at this time.
0 commit comments