Skip to content

Commit

Permalink
Add script that produces the on-off cell distribution to use in latex…
Browse files Browse the repository at this point in the history
… table
  • Loading branch information
ycanerol committed Jun 30, 2017
1 parent 7bf8511 commit 4806a8b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions table_maker.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jun 30 10:41:00 2017
@author: ycan
Make tables for latex
"""
#%%
#OFF, ON-OFF, ON
b=np.array([0,0,0])
for data in [all_f, all_c, all_o]:
a= np.array([np.where(data < -0.5)[0].size,
np.where(np.abs(data) < 0.5)[0].size,
np.where(data > 0.5)[0].size])/data.size
b = np.vstack((b,a))
b = b[1:,:]
rh = ['Full-field flicker', 'Checkerflicker', 'On-off steps']
b=b*100

for i in range(3):
print('{} & {:4.1f} & {:4.1f} & {:4.1f} \\\\'.format(rh[i],b[i,0],b[i,1],b[i,2]))

0 comments on commit 4806a8b

Please sign in to comment.