Commit 1b98c9c9 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files, Analysis.missing_clones()

parent c775efe0
......@@ -22,6 +22,12 @@ class Analysis(VidjilJson):
for clone in self.d['clones']:
self.clones[clone['id']] = clone
def missing_clones(self, lw):
'''Return a set of the clones described in this .analysis but not present into the .vidjil'''
my_clones = set(self.clones.keys())
lw_clones = set([c.d['id'] for c in lw])
return my_clones.difference(lw_clones)
def info_of_clone(self, w):
if w.d['id'] in self.clones:
return self.clones[w.d['id']]
......@@ -63,6 +63,10 @@ def main():
if not out:
if data_analysis:
for c in data_analysis.missing_clones(data):
print('%% !! %s' % c)
print(r' \hline')
if __name__ =='__main__':
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment