standardizing paths in abc_plots notebook

This commit is contained in:
Lester Mackey 2024-03-01 22:12:43 -05:00
Родитель 3fd9ad8f73
Коммит 991dd17155
1 изменённых файлов: 16 добавлений и 4 удалений

Просмотреть файл

@ -24,7 +24,7 @@
"# Ensure notebook is being run from base repository directory\n",
"import os, sys\n",
"try:\n",
" os.chdir(os.path.join(\"..\", \"..\", \"..\",\"..\", \"forecast_rodeo_ii\"))\n",
" os.chdir(os.path.join(\"..\",\"..\"))\n",
"except Exception as err:\n",
" print(f\"Warning: unable to change directory; {repr(err)}\")\n",
" \n",
@ -87,7 +87,7 @@
"#\n",
"# Directory for saving output\n",
"#\n",
"out_dir = os.path.join(\"forecast_rodeo_ii\", \"subseasonal_toolkit\", \"viz\", \"abc\", \"figures\")\n"
"out_dir = os.path.join(\"viz\", \"abc\", \"figures\")\n"
]
},
{
@ -163,7 +163,7 @@
"\n",
"all_metrics = {}\n",
"\n",
"# Get metrics for main experiment, rodeo experiment, salient experiment and ecmwf experiment\n",
"# Get metrics for all experiments\n",
"for metric, gt_id, horizon, target_dates in \\\n",
" [x for x in product(metrics, gt_ids, horizons, target_eval_dates)]: \n",
" \n",
@ -2052,10 +2052,22 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3"
"pygments_lexer": "ipython3",
"version": "3.9.12"
}
},
"nbformat": 4,