File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,13 +40,12 @@ def pytest_collection_modifyitems(config, items):
4040 item .add_marker (skip_marker )
4141
4242 # Skip related doctests if UCR UEA datasets cannot be fetched
43- ucr_uea_datasets = True
4443 try :
4544 datasets = UCR_UEA_datasets ()
46- datasets .cache_all ()
4745 ucr_uea_datasets = bool (datasets .list_datasets ())
4846 except Exception as exc :
49- warnings .warn ("Error caching UCR UEA datasets: {}" .format (exc ))
47+ ucr_uea_datasets = False
48+ warnings .warn ("Error listing UCR UEA datasets: {}" .format (exc ))
5049
5150 if not ucr_uea_datasets :
5251 warnings .warn ("Skipping doctests requiring UCR UEA dataset download" )
@@ -57,5 +56,7 @@ def pytest_collection_modifyitems(config, items):
5756 "tslearn.datasets.ucr_uea.UCR_UEA_datasets.list_multivariate_datasets" ,
5857 "tslearn.datasets.ucr_uea.UCR_UEA_datasets.list_univariate_datasets" ,
5958 "tslearn.datasets.ucr_uea.UCR_UEA_datasets.load_dataset" ,
59+ "tslearn.datasets.ucr_uea.UCR_UEA_datasets.baseline_accuracy" ,
60+ "tslearn.datasets.ucr_uea.UCR_UEA_datasets.list_cached_datasets"
6061 ]:
6162 item .add_marker (skip_marker )
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ def list_datasets(self):
198198 Returns
199199 -------
200200 list of str:
201- A list of names of all (univariate and multivariate) dataset namas .
201+ A list of names of all (univariate and multivariate) dataset names .
202202 """
203203 return (self .list_univariate_datasets ()
204204 + self .list_multivariate_datasets ())
You can’t perform that action at this time.
0 commit comments