Skip to content

Commit a042800

Browse files
committed
use ~/.aeon/data instead of package directory and remove the Pathlib implmentation
1 parent 2f38c47 commit a042800

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

aeon/datasets/_data_loaders.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import zipfile
2424
from datetime import datetime
2525
from http.client import IncompleteRead, RemoteDisconnected
26-
from pathlib import Path
2726
from urllib.error import HTTPError, URLError
2827
from urllib.parse import urlparse
2928
from urllib.request import Request, urlopen, urlretrieve
@@ -41,7 +40,7 @@
4140
from aeon.utils.conversion import convert_collection
4241

4342
DIRNAME = "data"
44-
MODULE = Path(aeon.__file__).parent / "datasets"
43+
MODULE = os.path.join(os.path.expanduser("~"), ".aeon")
4544

4645
CONNECTION_ERRORS = (
4746
HTTPError,

aeon/datasets/_single_problem_loaders.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
]
2525

2626
import os
27-
from pathlib import Path
2827

2928
import numpy as np
3029
import pandas as pd
@@ -33,7 +32,7 @@
3332
from aeon.datasets._data_loaders import _load_saved_dataset, _load_tsc_dataset
3433

3534
DIRNAME = "data"
36-
MODULE = Path(__file__).parent
35+
MODULE = os.path.dirname(__file__)
3736

3837

3938
def load_gunpoint(split=None, return_type="numpy3d"):

aeon/datasets/dataset_collections.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,13 @@
3434
"get_available_tsf_datasets",
3535
]
3636
import os
37-
from pathlib import Path
3837

3938
import aeon
4039
from aeon.datasets.tsc_datasets import multivariate, univariate
4140
from aeon.datasets.tser_datasets import tser_monash, tser_soton
4241
from aeon.datasets.tsf_datasets import tsf_all
4342

44-
MODULE = Path(aeon.__file__).parent / "datasets"
43+
MODULE = os.path.join(os.path.expanduser("~"), ".aeon")
4544

4645

4746
def get_available_tser_datasets(name="tser_soton", return_list=True):

0 commit comments

Comments
 (0)