From 8e09ece73e91ec56019356f0c1ac4904ad3ee13e Mon Sep 17 00:00:00 2001 From: Szymon Palucha Date: Thu, 17 Oct 2024 13:04:11 +0100 Subject: [PATCH] refactor: update confusing function name --- kazu/ontology_preprocessing/downloads.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: