f7c0cb49a2586f129cd4b2297a1bd3df3757f204,examples/save_movie.py,,,#,6

Before Change


data=sio.loadmat(datadir + "weights.mat")
w = [i for i in data["weights"][0]]
aligned = hyp.align(w)
hyp.plot(aligned, animate=True, movie_len=10, save_path="test-movie.mp4")

After Change



datadir = os.path.join(os.path.dirname(os.path.abspath(__file__)),"sample_data/")
data=sio.loadmat(datadir + "weights.mat")
w=data["weights"][0]
w = [i for i in w]
aligned_w = hyp.tools.align(w)

w1 = np.mean(aligned_w[:17],0)
w2 = np.mean(aligned_w[18:],0)

hyp.plot([w1,w2], animate=True, duration=120, save_path="animation.mp4")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: ContextLab/hypertools
Commit Name: f7c0cb49a2586f129cd4b2297a1bd3df3757f204
Time: 2017-01-25
Author: andrew.heusser@gmail.com
File Name: examples/save_movie.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: 3e04592d22e823516cf744dbacd3fde5183cf740
Time: 2019-04-29
Author: anntzer.lee@gmail.com
File Name: examples/text_labels_and_annotations/date.py
Class Name:
Method Name:


Project Name: ContextLab/hypertools
Commit Name: f7c0cb49a2586f129cd4b2297a1bd3df3757f204
Time: 2017-01-25
Author: andrew.heusser@gmail.com
File Name: examples/save_movie.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: f1ec5824f1c2ec54a26f1d20e845264d062071f4
Time: 2019-04-29
Author: 2836374+timhoffm@users.noreply.github.com
File Name: examples/text_labels_and_annotations/date.py
Class Name:
Method Name:


Project Name: ContextLab/hypertools
Commit Name: a20b82804a5cbbd2cb8d1976e832a3237926b93f
Time: 2017-01-25
Author: andrew.heusser@gmail.com
File Name: examples/save_movie.py
Class Name:
Method Name: