-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest_radial.py
More file actions
43 lines (32 loc) · 1.52 KB
/
test_radial.py
File metadata and controls
43 lines (32 loc) · 1.52 KB
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
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env python
"""
We explore the radial envelope in MotionClouds.
"""
import MotionClouds as mc
import numpy as np
name = 'radial'
B_theta = np.pi/8.
#initialize
fx, fy, ft = mc.get_grids(mc.N_X, mc.N_Y, mc.N_frame)
name_ = mc.figpath + name
mc.figures_MC(fx, fy, ft, name_, B_theta=B_theta)
verbose = False
# explore parameters
for B_sf in np.logspace(-2., 0.1, 5):#[0.0, 0.1, 0.2, 0.3, 0.8]:
name_ = mc.figpath + name + '-B_sf-' + str(B_sf).replace('.', '_')
mc.figures_MC(fx, fy, ft, name_, B_sf=B_sf, B_theta=B_theta, verbose=verbose)
for B_V in [0.001, 0.01, 0.05, 0.1, 0.5, 1.0, 10.0]:
name_ = mc.figpath + name + '-B_V-' + str(B_V).replace('.', '_')
mc.figures_MC(fx, fy, ft, name_, B_V=B_V, B_theta=B_theta, verbose=verbose)
for sf_0 in [0.01, 0.05, 0.1, 0.2, 0.4, 0.8]:
name_ = mc.figpath + name + '-sf_0-' + str(sf_0).replace('.', '_')
mc.figures_MC(fx, fy, ft, name_, sf_0=sf_0, B_theta=B_theta, verbose=verbose)
for sf_0 in [0.01, 0.05, 0.1, 0.2, 0.4, 0.8]:
name_ = mc.figpath + name + '-sf_0_nologgabor-' + str(sf_0).replace('.', '_')
mc.figures_MC(fx, fy, ft, name_, sf_0=sf_0, B_theta=B_theta, loggabor=False, verbose=verbose)
for seed in [123456, 123456, 123457, None, None]:
name_ = mc.figpath + name + '-seed-' + str(seed)
mc.figures_MC(fx, fy, ft, name_, seed=seed, B_theta=B_theta, verbose=verbose)
for V_X in [0., 0.5, 1., -1.]:
name_ = mc.figpath + name + '-V_X-' + str(V_X).replace('.', '_')
mc.figures_MC(fx, fy, ft, name_, V_X=V_X, B_theta=B_theta, verbose=verbose)