Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions scripts/guides/hpc/example_cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand All @@ -73,7 +73,7 @@
dataset_name = "simple__no_lens_light"

hpc_dataset_path = (
Path(path.sep)
Path("/")
/ "hpc"
/ "data"
/ "hpc_username"
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down
Loading