-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideo_from_pickles.py
executable file
·32 lines (21 loc) · 1.15 KB
/
video_from_pickles.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import pickle
import matplotlib.pyplot as plt
from plot import create_animated_output, create_animated_output_extra_calcium, create_circle_animation, concentric_circle_animation
from params import params
# save_directory = 'results/**_intact_embryo/'
# save_directory = 'results/**_asymmetric_cut/remove_35L_24R/'
save_directory = 'results/testing/'
number_of_cells = 100
########################################################################################
""" Pickle variables """
pickle_directory = save_directory + 'vars/'
t = pickle.load( open(pickle_directory + 't.p','rb') )
a = pickle.load( open(pickle_directory + 'a.p','rb') )
b = pickle.load( open(pickle_directory + 'b.p','rb') )
c = pickle.load( open(pickle_directory + 'c.p','rb') )
v = pickle.load( open(pickle_directory + 'v.p','rb') )
########################################################################################
""" Create animated output """
create_animated_output(number_of_cells, t, a, b, v, c, params, save_directory)
# create_animated_output_extra_calcium(number_of_cells, 1, t, a, b, v, c, params, save_directory)
# concentric_circle_animation(t, a, b, c, v, save_directory)