7
7
from activestorage .active import load_from_https
8
8
9
9
10
+ @pytest .mark .skip (reason = "save time: test_https_implicit_storage is more general." )
10
11
def test_https ():
11
12
"""Run a true test with a https FILE."""
12
13
test_file_uri = "https://esgf.ceda.ac.uk/thredds/fileServer/esg_cmip6/CMIP6/AerChemMIP/MOHC/UKESM1-0-LL/ssp370SST-lowNTCF/r1i1p1f2/Amon/cl/gn/latest/cl_Amon_UKESM1-0-LL_ssp370SST-lowNTCF_r1i1p1f2_gn_205001-209912.nc"
@@ -19,6 +20,18 @@ def test_https():
19
20
assert result == np .array ([0.6909787 ], dtype = "float32" )
20
21
21
22
23
+ @pytest .mark .skip (reason = "save time: 2xdata = 2xtime compared to test_https." )
24
+ def test_https_100years ():
25
+ """Run a true test with a https FILE."""
26
+ test_file_uri = "https://esgf.ceda.ac.uk/thredds/fileServer/esg_cmip6/CMIP6/CMIP/MOHC/UKESM1-1-LL/historical/r1i1p1f2/Amon/pr/gn/latest/pr_Amon_UKESM1-1-LL_historical_r1i1p1f2_gn_195001-201412.nc"
27
+ active = Active (test_file_uri , "pr" )
28
+ active ._version = 1
29
+ active ._method = "min"
30
+ result = active [0 :3 , 4 :6 , 7 :9 ]
31
+ print ("Result is" , result )
32
+ assert result == np .array ([5.4734613e-07 ], dtype = "float32" )
33
+
34
+
22
35
def test_https_reductionist ():
23
36
"""Run a true test with a https FILE."""
24
37
test_file_uri = "https://esgf.ceda.ac.uk/thredds/fileServer/esg_cmip6/CMIP6/AerChemMIP/MOHC/UKESM1-0-LL/ssp370SST-lowNTCF/r1i1p1f2/Amon/cl/gn/latest/cl_Amon_UKESM1-0-LL_ssp370SST-lowNTCF_r1i1p1f2_gn_205001-209912.nc"
@@ -46,6 +59,7 @@ def test_https_implicit_storage():
46
59
assert result == np .array ([0.6909787 ], dtype = "float32" )
47
60
48
61
62
+ @pytest .mark .skip (reason = "save time: test_https_dataset_implicit_storage is more general." )
49
63
def test_https_dataset ():
50
64
"""Run a true test with a https DATASET."""
51
65
test_file_uri = "https://esgf.ceda.ac.uk/thredds/fileServer/esg_cmip6/CMIP6/AerChemMIP/MOHC/UKESM1-0-LL/ssp370SST-lowNTCF/r1i1p1f2/Amon/cl/gn/latest/cl_Amon_UKESM1-0-LL_ssp370SST-lowNTCF_r1i1p1f2_gn_205001-209912.nc"
0 commit comments