2 FILTERDUP_VERSION
= "1.0.0 20140616"
3 RANDSAMPLE_VERSION
= "1.0.0 20120703"
7 BUFFER_SIZE
= 100000 # np array will increase at step of 1 million items
9 from array
import array
11 if array('h',[1]).itemsize
== 2:
14 raise Exception("BYTE2 type cannot be determined!")
16 if array('H',[1]).itemsize
== 2:
19 raise Exception("UBYTE2 (unsigned short) type cannot be determined!")
21 if array('i',[1]).itemsize
== 4:
23 elif array('l',[1]).itemsize
== 4:
26 raise Exception("BYTE4 type cannot be determined!")
28 if array('f',[1]).itemsize
== 4:
30 elif array('d',[1]).itemsize
== 4:
33 raise Exception("FBYTE4 type cannot be determined!")