Skip to content

Commit 0dcd306

Browse files
committed
refactor(analysis): rename outputs to relate to name of tables and figures from paper
1 parent 057d7d0 commit 0dcd306

File tree

8 files changed

+13
-14
lines changed

8 files changed

+13
-14
lines changed

notebooks/analysis.ipynb

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,11 +1863,11 @@
18631863
"source": [
18641864
"# Acute stroke unit\n",
18651865
"plot_occupancy_freq(base_overall[\"asu\"], unit=\"asu\",\n",
1866-
" file=\"occupancy_freq_asu.png\")\n",
1866+
" file=\"figure1_asu.png\")\n",
18671867
"\n",
18681868
"# Rehabilitation unit\n",
18691869
"plot_occupancy_freq(base_overall[\"rehab\"], unit=\"rehab\",\n",
1870-
" file=\"occupancy_freq_rehab.png\")"
1870+
" file=\"figure1_rehab.png\")"
18711871
]
18721872
},
18731873
{
@@ -3768,9 +3768,8 @@
37683768
}
37693769
],
37703770
"source": [
3771-
"plot_delay_prob(base_overall[\"asu\"], unit=\"asu\", file=\"delay_prob_asu.png\")\n",
3772-
"plot_delay_prob(base_overall[\"rehab\"], unit=\"rehab\",\n",
3773-
" file=\"delay_prob_rehab.png\")"
3771+
"plot_delay_prob(base_overall[\"asu\"], unit=\"asu\", file=\"figure3_asu.png\")\n",
3772+
"plot_delay_prob(base_overall[\"rehab\"], unit=\"rehab\", file=\"figure3_rehab.png\")"
37743773
]
37753774
},
37763775
{
@@ -4327,7 +4326,7 @@
43274326
"# Display and save to csv\n",
43284327
"display(adj_full_tab_2)\n",
43294328
"adj_full_tab_2.to_csv(\n",
4330-
" os.path.join(OUTPUT_DIR, \"delay_scenario1.csv\"), index=False)"
4329+
" os.path.join(OUTPUT_DIR, \"table2.csv\"), index=False)"
43314330
]
43324331
},
43334332
{
@@ -4557,7 +4556,7 @@
45574556
"\n",
45584557
"# Display and save to csv\n",
45594558
"display(sup_tab1)\n",
4560-
"sup_tab1.to_csv(os.path.join(OUTPUT_DIR, \"delay_scenario4.csv\"), index=False)"
4559+
"sup_tab1.to_csv(os.path.join(OUTPUT_DIR, \"suptable1.csv\"), index=False)"
45614560
]
45624561
},
45634562
{
@@ -5604,19 +5603,19 @@
56045603
],
56055604
"source": [
56065605
"# Convert to a dataframe\n",
5607-
"tab2 = pd.DataFrame(pool_result_list)\n",
5606+
"tab3 = pd.DataFrame(pool_result_list)\n",
56085607
"\n",
56095608
"for delay_type in [\"acute\", \"rehab\"]:\n",
56105609
" # Round probabilities to 3 decimal places\n",
5611-
" tab2[f\"pdelay_{delay_type}\"] = round(tab2[f\"pdelay_{delay_type}\"], 3)\n",
5610+
" tab3[f\"pdelay_{delay_type}\"] = round(tab3[f\"pdelay_{delay_type}\"], 3)\n",
56125611
" # Convert 1-in-n counts to integers\n",
5613-
" tab2[f\"1_in_n_delay_{delay_type}\"] = (\n",
5614-
" tab2[f\"1_in_n_delay_{delay_type}\"].astype(int))\n",
5612+
" tab3[f\"1_in_n_delay_{delay_type}\"] = (\n",
5613+
" tab3[f\"1_in_n_delay_{delay_type}\"].astype(int))\n",
56155614
"\n",
56165615
"# Display and save to csv\n",
5617-
"display(tab2)\n",
5618-
"tab2.to_csv(\n",
5619-
" os.path.join(OUTPUT_DIR, \"pooling.csv\"), index=False)"
5616+
"display(tab3)\n",
5617+
"tab3.to_csv(\n",
5618+
" os.path.join(OUTPUT_DIR, \"table3.csv\"), index=False)"
56205619
]
56215620
}
56225621
],
File renamed without changes.

0 commit comments

Comments
 (0)