Commit 73e230ca authored by Sulfyderz's avatar Sulfyderz
Browse files

[Error Update]:Correcting the diarUem parameter from the PurityCoverage method in diar_tools.

parent 976ff53a
......@@ -1967,9 +1967,12 @@ def PurityCoverage(diarHyp,diarRef,diarUem=None,tolerance=25,skip_overlap=False)
else:
reference[s, 2] = seg['cluster']
ref_uem = pyacore.Timeline()
for seg in diarUem:
ref_uem.add(pyacore.Segment(seg['start'], seg['stop']))
if diarUem is None:
ref_uem=None
else:
ref_uem = pyacore.Timeline()
for seg in diarUem:
ref_uem.add(pyacore.Segment(seg['start'], seg['stop']))
hyp = pyacore.Annotation()
for seg in diarHyp:
......
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