self.falling = [0] * self.channels
def start(self, metadata):
- self.unitsize = metadata["unitsize"]
+ self.unitsize = metadata['unitsize']
def report(self):
pass
channel(s) of the signal."""
# We should accept a list of samples and iterate...
- for sample in sampleiter(data["data"], self.unitsize):
+ for sample in sampleiter(data['data'], self.unitsize):
# TODO: Eliminate the need for ord().
s = ord(sample.data)
outdata += [[self.transitions[i], self.rising[i], self.falling[i]]]
sigrok.put(outdata)
-# Use psyco (if available) as it results in huge performance improvements.
-try:
- import psyco
- psyco.bind(decode)
-except ImportError:
- pass
-
import sigrok