-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script that produces the on-off cell distribution to use in latex…
… table
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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])) | ||
|