Skip to content

Commit

Permalink
added mode to kwargs in runmean in filter module
Browse files Browse the repository at this point in the history
  • Loading branch information
bohlinger committed Jan 26, 2024
1 parent b84d9c1 commit d3cdd3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wavy/filtermod.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def filter_runmean(self, **kwargs):
# apply slider if needed
win = kwargs.get('slider', len(new.vars.time))
ol = kwargs.get('overlap', 0)
mode = kwargs.get('mode', 'centered')
indices = new.slider_chunks(slider=win, overlap=ol)

ts_lst = []
Expand All @@ -188,7 +189,7 @@ def filter_runmean(self, **kwargs):
y = tmp_ds[new.varalias].values[tmp_tgc_idx]
window = kwargs.get('window')
ts, _ = runmean(y, window,
mode='centered')
mode=mode)
ts_lst.append(ts)
tgc_idx_lst.append(np.array(tmp_idx)[tmp_tgc_idx])
else:
Expand Down

0 comments on commit d3cdd3c

Please sign in to comment.