Public Member Functions | |
def | __init__ |
def | append |
def | apply_rename |
def | dump |
def | extend |
def | group |
def | sort |
Static Public Attributes | |
list | modules = [] |
Definition at line 103 of file hltFindDuplicates.py.
def hltFindDuplicates::ModuleList::__init__ | ( | self, | |
args | |||
) |
Definition at line 115 of file hltFindDuplicates.py.
def hltFindDuplicates::ModuleList::append | ( | self, | |
module | |||
) |
Definition at line 106 of file hltFindDuplicates.py.
def hltFindDuplicates::ModuleList::apply_rename | ( | self, | |
groups | |||
) |
Definition at line 140 of file hltFindDuplicates.py.
def hltFindDuplicates::ModuleList::dump | ( | self | ) |
Definition at line 144 of file hltFindDuplicates.py.
def hltFindDuplicates::ModuleList::extend | ( | self, | |
modules | |||
) |
Definition at line 111 of file hltFindDuplicates.py.
def hltFindDuplicates::ModuleList::group | ( | self | ) |
Definition at line 125 of file hltFindDuplicates.py.
00126 : 00127 groups = dict() 00128 self.sort() 00129 i = 0 00130 for v, g in itertools.groupby(self.modules, Module.key): 00131 group = list(g) 00132 if len(group) > 1: 00133 i = i + 1 00134 g = [ m.label for m in group ] 00135 g.sort() 00136 l = 'hltGroup%d' %i 00137 r = re.compile(r'^(%s)($|:)' % r'|'.join(g)) 00138 groups[l] = (g, r) 00139 return groups
def hltFindDuplicates::ModuleList::sort | ( | self | ) |
Definition at line 122 of file hltFindDuplicates.py.
list hltFindDuplicates::ModuleList::modules = [] [static] |
Definition at line 104 of file hltFindDuplicates.py.