ATLAS Offline Software
Loading...
Searching...
No Matches
grepCompFactory.py File Reference

Go to the source code of this file.

Namespaces

namespace  grepCompFactory

Variables

 grepCompFactory.parser = argparse.ArgumentParser(description='Find duplicate config for athena modules in the current and all subfolders. Scans files ending in *onfig.py or *onfigNew.py. Ignores duplicates listed in given reference file.')
 grepCompFactory.metavar
 grepCompFactory.type
 grepCompFactory.help
 grepCompFactory.args = parser.parse_args()
dict grepCompFactory.functionDict = {}
 grepCompFactory.files = glob.glob('**/*onfig.py', recursive=True)
 grepCompFactory.encoding
 grepCompFactory.match = re.search(r"CompFactory\.(\w+\.?\w+) ?\‍(", line)
 grepCompFactory.fun = match.group(1)
dict grepCompFactory.duplicates = {}
 grepCompFactory.ref = json.loads(f.read())
dict grepCompFactory.addedDuplicates = {}
dict grepCompFactory.removedDuplicates = {}
 grepCompFactory.newRemoved = list(set(refItem[1]) - set(duplicates[refItem[0]]))
 grepCompFactory.newAdded = list(set(duplicates[refItem[0]]) - set(refItem[1]))