Commit a0f1afa7 authored by Florent Desnous 's avatar Florent Desnous
Browse files

corrected viewer_utils.py:diar_diff() function

parent b41749b1
......@@ -84,12 +84,12 @@ def add_collar(diar, collar):
def diar_diff(hyp, ref, match=True, inter=False, collar=25):
hyp = copy.deepcopy(hyp)
if not hyp._attr_names.exist('color'):
if not hyp._attributes.exist('color'):
hyp.add_attribut('color', (0.0, 0.6, 0.0, 1.0))
hyp.pack()
ref = copy.deepcopy(ref)
if not ref._attr_names.exist('color'):
if not ref._attributes.exist('color'):
ref.add_attribut('color', (0.6, 0.0, 0.0, 1.0))
ref.pack()
......
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