1 | | - | # -*- coding: utf-8 -*- |
2 | | - | """flipper.ipynb |
3 | | - | |
4 | | - | Automatically generated by Colaboratory. |
5 | | - | |
6 | | - | Original file is located at |
7 | | - | https://colab.research.google.com/drive/10iu3Fs4YzPETf4yz8ejyI8qCreLjiLNm |
8 | | - | """ |
9 | | - | |
10 | 1 | | import pandas as pd |
11 | | - | split = 500 # split files according to the keys count (each 1000 in one file) |
| 2 | + | split = 1000 # split files according to the keys count (each 1000 in one file) |
12 | 3 | | case = 0 |
13 | 4 | | |
14 | 5 | | for x in range(0, 4096): # 12bit = 4096 possibilities |
15 | | - | binary = "{0:012b}".format(x) #with leading zeros |
| 6 | + | binary = "{0:012b}".format(x) # with leading zeros |
16 | 7 | | cmd = ['-15078 ', '321 '] |
17 | 8 | | for char in binary: |
18 | 9 | | if char == "0": |
| skipped 24 lines |
43 | 34 | | f.write('\n') |
44 | 35 | | |
45 | 36 | | writing(command, filecase, padding) |
| 37 | + | |