diff --git a/kazu/ontology_preprocessing/downloads.py b/kazu/ontology_preprocessing/downloads.py index 12bf578b..11c4fb40 100644 --- a/kazu/ontology_preprocessing/downloads.py +++ b/kazu/ontology_preprocessing/downloads.py @@ -224,7 +224,7 @@ def __init__(self, open_targets_version: str, open_targets_dataset_name: str): self.open_targets_version = open_targets_version @staticmethod - def _cached_wget(full_url: str, cwd: Path) -> None: + def _wget(full_url: str, cwd: Path) -> None: args = _get_proxy_args_for_wget() args.extend( [ @@ -241,7 +241,7 @@ def _cached_wget(full_url: str, cwd: Path) -> None: def download(self, local_path: Path, skip_download: bool = False) -> Path: if not skip_download: full_url = f"{self.OT_PREFIX}{self.open_targets_version}/output/etl/json/{self.open_targets_dataset_name}" - OpenTargetsOntologyDownloader._cached_wget(full_url, local_path.parent) + OpenTargetsOntologyDownloader._wget(full_url, local_path.parent) return local_path def version(self, local_path: Optional[Path] = None) -> str: