Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
setup_cyth.py | 2016-06-20 | 529 Bytes | |
README | 2016-06-20 | 774 Bytes | |
reverse_byte_order.pyx | 2016-06-20 | 5.6 kB | |
change_endianness.py | 2016-06-20 | 591 Bytes | |
make_clean | 2016-06-20 | 55 Bytes | |
Totals: 5 Items | 7.5 kB | 0 |
This is an example of a module for changing the endianness of each word in the backup vci_matrix file. First, clean the directory of old files, ./make_clean Then, convert "reverse_byte_order.pyx" to C using Cython, by calling python setup_cyth.py build_ext --inplace which will do the conversion and compilation. If there are problems with the generated C code, than try using one of the versions supplied in "code/C_code_Py27" or "code/C_code_Py34", which were converted with Python2.7 and Python3.4 respectively. After that, assuming you have your vci_matrix with the wrong endianness in the same directory and under the name "fin", call ./change_endianness.py fin fout "fout" is the name for the new backup file, with byte order of each float and int reversed.