From 7c71893e41bec0d61929cb008434dc1f71c60117 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Fri, 8 May 2026 11:05:49 +0100 Subject: [PATCH] fix: pathlib-refactor leftovers in HPC example_cpu_and_gpu.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cluster H follow-up to PR #59 (the os.path → pathlib refactor). Six sites in scripts/guides/hpc/example_cpu_and_gpu.py: three Path(path.sep…) leftovers and three dataset_Path() identifiers that the case-insensitive substitution corrupted from dataset_path. --- scripts/guides/hpc/example_cpu_and_gpu.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/guides/hpc/example_cpu_and_gpu.py b/scripts/guides/hpc/example_cpu_and_gpu.py index 6a6e9ada..e0362fce 100644 --- a/scripts/guides/hpc/example_cpu_and_gpu.py +++ b/scripts/guides/hpc/example_cpu_and_gpu.py @@ -61,7 +61,7 @@ """ from pathlib import Path -hpc_output_path = Path(path.sep) / "hpc" / "data" / "hpc_username" / "output" +hpc_output_path = Path("/") / "hpc" / "data" / "hpc_username" / "output" """ __HPC Dataset Path__ @@ -79,7 +79,7 @@ dataset_name = "simple" hpc_dataset_path = ( - Path(path.sep) + Path("/") / "hpc" / "data" / "hpc_username" @@ -97,7 +97,7 @@ But may be where you store the python galaxy modeling scripts you run on the HPC, the config files, batch scripts and other files you use to set up galaxy modeling on the hpc. """ -home_path = Path(path.sep, "hpc", "home", "hpc_username") +home_path = Path("/", "hpc", "home", "hpc_username") """ On the HPC, most likely in your home directory, you should have a config folder which contains the config files used by @@ -204,7 +204,7 @@ """ dataset_path = Path(hpc_dataset_path, dataset_type, dataset_name) -if not dataset_Path().exists(): +if not dataset_path.exists(): local_dataset_path = Path.cwd() dataset_type = "imaging" dataset_path = Path(local_dataset_path, "dataset", dataset_type, dataset_name) @@ -239,7 +239,7 @@ dataset_path = Path(hpc_dataset_path, dataset_folder, dataset_name) -if not dataset_Path().exists(): +if not dataset_path.exists(): local_dataset_path = Path.cwd() dataset_folder = "imaging" dataset_path = Path(local_dataset_path, "dataset", dataset_folder, dataset_name) @@ -251,7 +251,7 @@ If the dataset does not already exist on your system, it will be created by running the corresponding simulator script. This ensures that all example scripts can be run without manually simulating data first. """ -if not dataset_Path().exists(): +if not dataset_path.exists(): import subprocess import sys