- self.timeoffset = timeoffset
- self.duration = duration
- print("++", timeoffset, duration, len(data))
- # duration of one bit in ps, only valid for this call to decode()
- self.period = int(duration / len(data))
-
- # We should accept a list of samples and iterate...
- for sample in sampleiter(data, self.unitsize):
-
- # TODO: Eliminate the need for ord().
- s = ord(sample.data)
-
- # TODO: Start counting at 0 or 1?
- self.samplenum += 1