Skip to content

Commit

Permalink
default path should not be absolute to folder without permissions
Browse files Browse the repository at this point in the history
default now points towards newly created templates folder
  • Loading branch information
sadamov committed Apr 26, 2024
1 parent 7dc7c09 commit 01de4a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions offline.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ def offline_plotting():
parser.add_argument(
"--path_target_file",
type=str,
default="",
default="data/cosmo/templates/template.zarr",
help="Path to the .zarr archive to verify against - target",
)
parser.add_argument(
"--path_prediction_file",
type=str,
default="",
default="data/cosmo/templates/predictions.npy",
help="Path to the file output from the inference as .npy",
)
parser.add_argument(
"--saving_path",
type=str,
default="",
default="data/results",
help="Path to save the graphical output of this function",
)
parser.add_argument(
Expand Down
6 changes: 3 additions & 3 deletions slurm_offline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ conda activate neural-lam
ulimit -c 0
export OMP_NUM_THREADS=16

srun -ul python offline.py --path_target_file "/users/sadamov/pyprojects/neural-lam/data/cosmo/templates/template.zarr" \
--path_prediction_file "/users/clechart/clechart/neural-lam/wandb/run-20240411_140635-cux0r96n/files/results/inference/prediction_0.npy" \
--saving_path "/users/clechart/clechart/neural-lam/figures" \
srun -ul python offline.py --path_target_file "data/cosmo/templates/template.zarr" \
--path_prediction_file "data/cosmo/templates/predictions.npy" \
--saving_path "data/results" \
--variable_to_plot "T_2M"

0 comments on commit 01de4a1

Please sign in to comment.