diff options
author | Hind-M <hind.montassif@gmail.com> | 2022-05-24 15:57:52 +0200 |
---|---|---|
committer | Hind-M <hind.montassif@gmail.com> | 2022-05-24 15:57:52 +0200 |
commit | ce34ee3e5c28c48d605f23332cfa3c10e471a047 (patch) | |
tree | d5d64c12c25227e01ba2d824808ed4eaf189d071 /src/python/gudhi/datasets | |
parent | 4d2f5a1c165204765a04594a9f1f6ba9bcb939ba (diff) |
Make get_data_home function private
Diffstat (limited to 'src/python/gudhi/datasets')
-rw-r--r-- | src/python/gudhi/datasets/remote.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/python/gudhi/datasets/remote.py b/src/python/gudhi/datasets/remote.py index d2ae2a75..7e6f647f 100644 --- a/src/python/gudhi/datasets/remote.py +++ b/src/python/gudhi/datasets/remote.py @@ -16,7 +16,7 @@ import shutil import numpy as np -def get_data_home(data_home = None): +def _get_data_home(data_home = None): """ Return the path of the remote datasets directory. This folder is used to store remotely fetched datasets. @@ -55,7 +55,7 @@ def clear_data_home(data_home = None): If `None` and the 'GUDHI_DATA' environment variable does not exist, the default directory to be removed is set to "~/gudhi_data". """ - data_home = get_data_home(data_home) + data_home = _get_data_home(data_home) shutil.rmtree(data_home) def _checksum_sha256(file_path): @@ -130,7 +130,7 @@ def _get_archive_path(file_path, label): Full path of archive including filename. """ if file_path is None: - archive_path = join(get_data_home(), label) + archive_path = join(_get_data_home(), label) dirname = split(archive_path)[0] makedirs(dirname, exist_ok=True) else: |