czyoung commited on
Commit
853ad6e
·
verified ·
1 Parent(s): d08af54

Update sonogram_utility.py

Browse files
Files changed (1) hide show
  1. sonogram_utility.py +5 -0
sonogram_utility.py CHANGED
@@ -210,6 +210,11 @@ def checkForOverlap(time1, time2):
210
  else:
211
  return None
212
 
 
 
 
 
 
213
 
214
  def sumTimes(annotation):
215
  return annotation.get_timeline(False).duration()
 
210
  else:
211
  return None
212
 
213
+ def sumSegments(segmentList):
214
+ total = 0
215
+ for s in segmentList:
216
+ total += s.duration
217
+ return total
218
 
219
  def sumTimes(annotation):
220
  return annotation.get_timeline(False).duration()