Skip to content

Commit ef59e59

Browse files
committed
Update approval test
1 parent b4d6773 commit ef59e59

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.circleci/approved/npl-approvalstest-2016-01-01/notebooks/reports/active_crisis.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,18 +1458,18 @@
14581458
" excess_arrivals_df=regional_dataframe,\n",
14591459
" arrivals_from_aa=arrivals_from_aa,\n",
14601460
" key_dates=key_dates,\n",
1461-
" aa_name=aa,\n",
1461+
" aa_name=excess_arrivals_past_week_w_geo.index_AA.unique().values[0],\n",
14621462
" output_folder=output_path,\n",
14631463
" date_string=date_string,\n",
14641464
" )\n",
14651465
" outputs_dict[\"affected_areas\"][aa][\"top3_adm_hosts\"] = str(top_3_adm_hosts_path)\n",
14661466
"\n",
14671467
"# National level top3 hosts\n",
14681468
"top_3_adm_hosts_multi_aa_path = top_3_adm_hosts_multi_aa(\n",
1469-
" excess_arrivals_df=regional_dataframe,\n",
1469+
" excess_arrivals_df=excess_arrivals_past_week_w_geo,\n",
14701470
" arrivals_from_aa=arrivals_from_aa,\n",
14711471
" key_dates=key_dates,\n",
1472-
" aa_name=list(excess_arrivals_past_week_w_geo.name.unique()),\n",
1472+
" aa_name=list(excess_arrivals_past_week_w_geo.index_AA.unique()),\n",
14731473
" output_folder=output_path,\n",
14741474
" date_string=date_string,\n",
14751475
")\n",

.circleci/approved/npl-approvalstest-2016-01-01/notebooks/reports/visualisations/active_crisis/plotting.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from pandas import DataFrame
66
import numpy as np
77
from slugify import slugify
8+
from cycler import cycler
89

910
px = 1 / plt.rcParams["figure.dpi"]
1011

@@ -106,6 +107,9 @@ def top_3_adm_hosts(
106107
aa_name: str,
107108
output_folder: Path,
108109
):
110+
color_cycle_iter = cycler(
111+
color=["#034174", "#CBA45A", "#701F53", "#006E8C", "#BF6799", "#00989A", "#9E6257"]
112+
)()
109113
def _plot_arrivals(df, ax):
110114
df = df.set_index("date")
111115

@@ -206,6 +210,9 @@ def top_3_adm_hosts_multi_aa(
206210
aa_name: list[str],
207211
output_folder: Path,
208212
):
213+
color_cycle_iter = cycler(
214+
color=["#034174", "#CBA45A", "#701F53", "#006E8C", "#BF6799", "#00989A", "#9E6257"]
215+
)()
209216
def _plot_arrivals(df, ax):
210217
df = df.groupby("date").sum()
211218

0 commit comments

Comments
 (0)