Skip to content

Commit

Permalink
Automatically set run group name
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-ragonnet committed Sep 11, 2023
1 parent e65731a commit 91add12
Showing 1 changed file with 11 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,8 @@
"metadata": {},
"outputs": [],
"source": [
"task_dict = {}\n",
"for i, iso3 in enumerate(ISO3_LIST):\n",
" # Use these targets, but keep the other kwargs the same\n",
" task_kwargs = {\n",
" \"iso3\": iso3,\n",
" \"analysis\": ANALYSIS\n",
" }\n",
" task_dict[run_paths[i]] = springboard.TaskSpec(remote_full_analysis_task, task_kwargs)"
"run_group_name = run_paths[0].split(\"/\")[-1]\n",
"run_group_name"
]
},
{
Expand All @@ -127,7 +121,14 @@
"metadata": {},
"outputs": [],
"source": [
"springboard.launch.launch_synced_multiple_autumn_task?"
"task_dict = {}\n",
"for i, iso3 in enumerate(ISO3_LIST):\n",
" # Use these targets, but keep the other kwargs the same\n",
" task_kwargs = {\n",
" \"iso3\": iso3,\n",
" \"analysis\": ANALYSIS\n",
" }\n",
" task_dict[run_paths[i]] = springboard.TaskSpec(remote_full_analysis_task, task_kwargs)"
]
},
{
Expand All @@ -136,7 +137,7 @@
"metadata": {},
"outputs": [],
"source": [
"runners = springboard.launch.launch_synced_multiple_autumn_task(task_dict, mspec, run_group=\"2023-09-11T1023-test_multirun_main_LHS16_opt10000_mc5000n30000\")\n"
"runners = springboard.launch.launch_synced_multiple_autumn_task(task_dict, mspec, run_group=run_group_name)"
]
},
{
Expand All @@ -150,15 +151,6 @@
" # print(runner.top(\"%MEM\"))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"run_paths"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -168,13 +160,6 @@
"for run_path in run_paths:\n",
" download_analysis(run_path)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 91add12

Please sign in to comment.