Lines Matching refs:unit
506 def __init__(self, unit, time, pairs = {}):
507 # blob's unit name
508 self.unit = unit
514 # Non-MinorTrace debug printout for this unit at this time
559 for unit, events in self.unitEvents.iteritems():
560 self.unitEvents[unit] = []
565 if blob.unit not in self.unitNameToBlobs:
566 self.unitNameToBlobs[blob.unit] = []
568 self.unitNameToBlobs[blob.unit].append(blob)
601 if event.unit in self.unitEvents:
602 events = self.unitEvents[event.unit]
624 def find_event_bisection(self, unit, time, events,
651 def find_unit_event_by_time(self, unit, time):
652 """Find the last event for the given unit at time <= time"""
653 if unit in self.unitEvents:
654 events = self.unitEvents[unit]
655 ret = self.find_event_bisection(unit, time, events,
789 event_time, unit, line_type, rest = match.groups()
792 unit = re.sub('^' + self.unitNamePrefix + '\.?(.*)$',
793 '\\1', unit)
807 comments.append((unit, rest))
812 # the last event we saw for this unit
813 if last_time_lines.get(unit, None) != rest:
814 event = BlobEvent(unit, event_time, {})
819 blobs = self.unitNameToBlobs.get(unit, [])
826 last_time_lines[unit] = rest
965 def parse_blob_description(char, unit, macros, pairsList):
984 ret = blobs.Key(char, unit, Point(0,0), colour)
986 ret = blobs.Block(char, unit, Point(0,0), colour)
995 ret.displayName = pairs.get('name', unit)
1097 char, unit, pairs = line_match.groups()
1098 blob = parse_blob_description(char, unit, macros,
1102 self.unitEvents[unit] = []