Skip to content

Commit

Permalink
Update metric_utilities.py
Browse files Browse the repository at this point in the history
remove nearest... can't reproduce the issue it was trying to fix
  • Loading branch information
Dobson committed May 23, 2024
1 parent 0fb5ff6 commit 7090f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swmmanywhere/metric_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def align_by_shape(var,
results
.groupby(key)
.apply(func =
lambda x : x.set_index('date')[['value_syn']].interpolate('nearest'))
lambda x : x.set_index('date')[['value_syn']].interpolate())
.reset_index()
)
results = pd.merge(results.drop('value_syn', axis=1),
Expand Down

0 comments on commit 7090f9b

Please sign in to comment.