[Numpy-discussion] A bug in loadtxt and how to convert a string array (hex data) to decimal?
Thu Sep 18 16:27:49 CDT 2008
I have found a bug in the loadtxt function. Here is the example. The file name is test.txt and contains:
"Thist is test"
In the Python 2.5.2, I type:
test will contain
The first two values 102 and 100 are wrong.
The reason I am doing this because that I have to process a large amount of data from a file. The data is in hex format. This is only way I found that I can efficiently convert the hex to decimal.
Anyone has a good solution?
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion