Cast block name to str

master
Dan Howe 3 years ago
parent c2e3a1a484
commit c2d1e52fe6

@ -486,7 +486,7 @@ 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']
idx = (str(df_out['block']) == str(b)) & (df_out['profile']
== p)
df_out.loc[idx, 'segment_gaps'] = True

Loading…
Cancel
Save