Skip to content

Commit

Permalink
refactor: update confusing function name
Browse files Browse the repository at this point in the history
  • Loading branch information
paluchasz committed Oct 17, 2024
1 parent f7bd95d commit 8e09ece
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kazu/ontology_preprocessing/downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand All @@ -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:
Expand Down

0 comments on commit 8e09ece

Please sign in to comment.