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 @@ -6463,15 +6463,14 @@ def test_batchdap4_downloads(protocol, batch) -> None:
6463
6463
session .cache .clear ()
6464
6464
url = "https://test.opendap.org/opendap/hyrax/data/nc/coads_climatology.nc"
6465
6465
6466
- args = {
6467
- "filename_or_obj" : url .replace ("https" , protocol ),
6468
- "engine" : "pydap" ,
6469
- "session" : session ,
6470
- "decode_times" : False ,
6471
- }
6472
-
6473
6466
if protocol == "dap4" :
6474
- ds = open_dataset (** args , batch = batch )
6467
+ ds = open_dataset (
6468
+ url .replace ("https" , protocol ),
6469
+ engine = "pydap" ,
6470
+ session = session ,
6471
+ decode_times = False ,
6472
+ batch = batch ,
6473
+ )
6475
6474
if _version_ > Version ("3.5.5" ):
6476
6475
# total downloads are:
6477
6476
# 1 dmr + 1 dap (dimensions)
@@ -6490,9 +6489,13 @@ def test_batchdap4_downloads(protocol, batch) -> None:
6490
6489
ds .load ()
6491
6490
assert len (session .cache .urls ()) == 4 + 4
6492
6491
elif protocol == "dap2" :
6493
- ds = open_dataset (** args )
6492
+ ds = open_dataset (
6493
+ url .replace ("https" , protocol ),
6494
+ engine = "pydap" ,
6495
+ session = session ,
6496
+ decode_times = False ,
6497
+ )
6494
6498
# das + dds + 3 dods urls
6495
-
6496
6499
assert len (session .cache .urls ()) == 5
6497
6500
6498
6501
You can’t perform that action at this time.
0 commit comments