Created
May 4, 2012 07:35
-
-
Save Bobbias/2592906 to your computer and use it in GitHub Desktop.
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
output looks like this: | |
F | |
A | |
3 | |
G | |
5 | |
D | |
etc. |
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
import matplotlib.pyplot as plt | |
import numpy as np | |
import re | |
import string | |
from bitstring import BitStream, BitArray | |
in_file = open("dump.log", "r") | |
for data in in_file.read(): | |
b = BitStream(bytes=data) | |
print b.bytes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment