From c2d1e52fe6a592fffaae4a7b0a3fb2ca23ec0b2b Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Mon, 9 May 2022 14:11:45 +0200 Subject: [PATCH] Cast block name to str --- probabilistic-analysis/probabilistic_assessment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/probabilistic-analysis/probabilistic_assessment.py b/probabilistic-analysis/probabilistic_assessment.py index 8867561..38cc0df 100644 --- a/probabilistic-analysis/probabilistic_assessment.py +++ b/probabilistic-analysis/probabilistic_assessment.py @@ -486,8 +486,8 @@ def process(beach_name, beach_scenario, n_runs, start_year, end_year, df_out = df_out.assign(segment_gaps=False) for b, p, in zip(segment_gaps['block'], segment_gaps['profile']): - idx = (df_out['block'] == str(b)) & (df_out['profile'] - == p) + idx = (str(df_out['block']) == str(b)) & (df_out['profile'] + == p) df_out.loc[idx, 'segment_gaps'] = True # Specify which profiles to plot