Skip to content

Commit

Permalink
figure FLE : relaunching nb
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentperrinet committed Feb 23, 2017
1 parent 7856c15 commit 2f38f0a
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 82 deletions.
Binary file modified figures/FLE-A.pdf
Binary file not shown.
Binary file modified figures/FLE-B.pdf
Binary file not shown.
Binary file modified figures/FLE-C.pdf
Binary file not shown.
Binary file modified figures/FLE.pdf
Binary file not shown.
Binary file added figures/FLE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
121 changes: 45 additions & 76 deletions notebooks/figure_3_FLE.ipynb

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions scripts/experiment_fle.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
# running PX and MBP with 2 different latencies
for D_x, D_V, v_prior, label in zip([mp.D_x, PBP_D_x], [mp.D_V, PBP_D_V], [mp.v_prior, PBP_prior], ['MBP', 'PBP']):
figname = os.path.join(mp.figpath, experiment + '-' + stimulus_tag + '-' + label)

image[stimulus_tag]['result'][label] = {}
image[stimulus_tag]['args'].update(D_V=D_V, D_x=D_x, v_prior=v_prior)
_ = mp.figure_image_variable(
figname,
N_X, N_Y, N_frame, gen_dot, order=None,
figname,
N_X, N_Y, N_frame, gen_dot, order=None,
do_figure=do_figure, do_video=do_video, N_quant_X=N_quant_X, N_quant_Y=N_quant_Y,
fixed_args=image[stimulus_tag]['args'], latency=latencies)
try:
for latency in latencies:
matname = mp.make_figname(figname, {'latency': latency}).replace(mp.figpath, mp.matpath) + '.npy'
image[stimulus_tag]['result'][label][latency] = np.load(matname)
except:
print('no result yet for ', matname)
print('no result yet for ', matname)
4 changes: 2 additions & 2 deletions scripts/experiment_speed.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
image_speed[stimulus_tag]['args'].update(D_V=D_V, D_x=D_x, v_prior=v_prior)

kwargs_variable = mp.figure_image_variable(
figname,
figname,
N_X, N_Y, N_frame, gen_dot, order=None, do_figure=do_figure, do_video=do_video, N_quant_X=N_quant_X, N_quant_Y=N_quant_Y,
fixed_args=image_speed[stimulus_tag]['args'],
V_X=speeds, X_0=X_0s, flash_start=dot_starts, flash_duration=flash_durations)
Expand All @@ -41,4 +41,4 @@
matname = mp.make_figname(figname, new_kwargs).replace(mp.figpath, mp.matpath) + '.npy'
image_speed[stimulus_tag]['result'][label][new_kwargs['V_X']] = np.load(matname)
except:
print('no result yet for ', matname)
print('no result yet for ', matname)

0 comments on commit 2f38f0a

Please sign in to comment.