summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/python/doc/datasets.rst2
-rw-r--r--src/python/gudhi/datasets/remote.py6
-rw-r--r--src/python/test/test_remote_datasets.py4
3 files changed, 5 insertions, 7 deletions
diff --git a/src/python/doc/datasets.rst b/src/python/doc/datasets.rst
index d2975533..8b0912c4 100644
--- a/src/python/doc/datasets.rst
+++ b/src/python/doc/datasets.rst
@@ -127,6 +127,4 @@ We provide some ready-to-use datasets that are not available by default when get
2D spiral with 114562 vertices.
-.. autofunction:: gudhi.datasets.remote.get_data_home
-
.. autofunction:: gudhi.datasets.remote.clear_data_home
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:
diff --git a/src/python/test/test_remote_datasets.py b/src/python/test/test_remote_datasets.py
index cde9fa22..e5d2de82 100644
--- a/src/python/test/test_remote_datasets.py
+++ b/src/python/test/test_remote_datasets.py
@@ -18,8 +18,8 @@ from os.path import isdir, expanduser, exists
from os import remove, environ
def test_data_home():
- # Test get_data_home and clear_data_home on new empty folder
- empty_data_home = remote.get_data_home(data_home="empty_folder_for_test")
+ # Test _get_data_home and clear_data_home on new empty folder
+ empty_data_home = remote._get_data_home(data_home="empty_folder_for_test")
assert isdir(empty_data_home)
remote.clear_data_home(data_home=empty_data_home)