diff --git a/scripts/guides/hpc/example_cpu.py b/scripts/guides/hpc/example_cpu.py index 58caf129d..3ea072c76 100644 --- a/scripts/guides/hpc/example_cpu.py +++ b/scripts/guides/hpc/example_cpu.py @@ -55,7 +55,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__ @@ -73,7 +73,7 @@ dataset_name = "simple__no_lens_light" hpc_dataset_path = ( - Path(path.sep) + Path("/") / "hpc" / "data" / "hpc_username" @@ -91,7 +91,7 @@ But may be where you store the python lens modeling scripts you run on the HPC, the config files, batch scripts and other files you use to set up lens 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 @@ -288,7 +288,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