Don't process omitted profiles

master
Dan Howe 3 years ago
parent 94d150d957
commit 5e2cfccb34

@ -438,6 +438,12 @@ def process(beach_name, beach_scenario, n_runs, start_year, end_year,
# Loop through profiles # Loop through profiles
dff = df_in[df_in['beach'] == beach_name] dff = df_in[df_in['beach'] == beach_name]
# Remove omitted profiles
dff = pd.merge(
pd.DataFrame(omit), dff, how='outer',
indicator='source').query('source!="both"').drop(columns='source')
pbar_profile = tqdm(dff.iterrows(), total=dff.shape[0], leave=False) pbar_profile = tqdm(dff.iterrows(), total=dff.shape[0], leave=False)
for i, prof in pbar_profile: for i, prof in pbar_profile:

Loading…
Cancel
Save