chongxi / spiketag

Next generation of spike sorting package for BMI
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

FPGA python API error under python 3 #34

Closed chongxi closed 5 years ago

chongxi commented 5 years ago

error: repeat count given without format specifier

chongxi commented 5 years ago
/disk0/Work/pydev/spiketag/spiketag/fpga/memory_api.py in to_fixed_point(v, dtype, binpoint)
     81 def to_fixed_point(v, dtype='<i4', binpoint=14):
     82     v = int(v * 2**binpoint)
---> 83     value = hexlify(struct.pack(dtype,v))
     84     # print value
     85     return struct.pack(dtype,v)

error: repeat count given without format specifier