Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
vidjil
vidjil
Commits
1b98c9c9
Commit
1b98c9c9
authored
Jul 30, 2015
by
Mathieu Giraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
latex.py, analysis.py: Analysis.missing_clones()
parent
c775efe0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
tools/analysis.py
tools/analysis.py
+6
-0
tools/latex.py
tools/latex.py
+4
-0
No files found.
tools/analysis.py
View file @
1b98c9c9
...
...
@@ -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'
]]
...
...
tools/latex.py
View file @
1b98c9c9
...
...
@@ -63,6 +63,10 @@ def main():
if
not
out
:
print
(
r
'\\'
)
if
data_analysis
:
for
c
in
data_analysis
.
missing_clones
(
data
):
print
(
'%% !! %s'
%
c
)
print
(
r
' \hline'
)
if
__name__
==
'__main__'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment