d395fbab0170a4a2b6cffac88804e379be7e001c,python/animate.py,,get_cube_scale,#Any#,37
Before Change
return smoothed
def get_cube_scale(x):
if x is list:
x = np.vstack(x)
x = np.square(x)
x = np.sum(x,1)
return np.max(x)
def animate(x):
def update_lines(num, dataLines, lines, trailLines, tail_len=50, tail_style=":", speed=1, cam_dist=5):
After Change
return smoothed
def get_cube_scale(x):
x = np.vstack(x)
x_square = np.square(x)
x_ss = np.sum(x_square,axis=1)
idx = [i for i in range(len(x_ss)) if x_ss[i]==np.max(x_ss)]
print(np.linalg.norm(x[idx,:]))
return np.linalg.norm(x[idx,:])
def animate(x):
def update_lines(num, data_lines, lines, trail_lines, cube_scale, tail_len=50, tail_style=":", speed=1):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 23
Instances Project Name: ContextLab/hypertools
Commit Name: d395fbab0170a4a2b6cffac88804e379be7e001c
Time: 2016-12-07
Author: andyheusser@andys-mbp.wireless.dartmouth.edu
File Name: python/animate.py
Class Name:
Method Name: get_cube_scale
Project Name: ContextLab/hypertools
Commit Name: 2f7b178c73ac51c2051cc447587d373f8f0f573a
Time: 2016-12-07
Author: andyheusser@andys-mbp.wireless.dartmouth.edu
File Name: python/animate.py
Class Name:
Method Name: get_cube_scale
Project Name: ContextLab/hypertools
Commit Name: cde65b259ba5080668f9e45fe02447b08dbbe677
Time: 2016-12-07
Author: andyheusser@andys-mbp.wireless.dartmouth.edu
File Name: python/animate.py
Class Name:
Method Name: get_cube_scale
Project Name: ContextLab/hypertools
Commit Name: 3807a532d2b7fd2bfa5bd3ea4d661848c7e336f6
Time: 2016-12-07
Author: andyheusser@andys-mbp.wireless.dartmouth.edu
File Name: python/animate.py
Class Name:
Method Name: get_cube_scale