Skip to content
Snippets Groups Projects
Commit 59e772af authored by Raphael's avatar Raphael
Browse files

multi column operations

parent f63567c8
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ def compute_trajectory(times, time_gap): ...@@ -24,7 +24,7 @@ def compute_trajectory(times, time_gap):
def apply_func_on_window(dat, func, radius, on_edge='copy'): def apply_func_on_window(dat, func, radius, on_edge='copy'):
result = np.zeros(dat.shape) result = np.zeros(dat.shape[0])
if on_edge == 'copy': if on_edge == 'copy':
if len(dat.shape) == 1: if len(dat.shape) == 1:
dat = np.concatenate([np.full(radius, dat[0]), dat, np.full(radius, dat[-1])]) dat = np.concatenate([np.full(radius, dat[0]), dat, np.full(radius, dat[-1])])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment