Spaces:
Sleeping
Sleeping
Update sonogram.py
Browse files- sonogram.py +4 -0
sonogram.py
CHANGED
|
@@ -255,6 +255,8 @@ class Sonogram():
|
|
| 255 |
if tracking:
|
| 256 |
singleDimList.append((currMembers,Segment(start,start+duration)))
|
| 257 |
currList.append((currMembers,Segment(start,start+duration)))
|
|
|
|
|
|
|
| 258 |
start = None
|
| 259 |
currMembers == None
|
| 260 |
duration = 0
|
|
@@ -262,6 +264,8 @@ class Sonogram():
|
|
| 262 |
if tracking:
|
| 263 |
singleDimList.append((currMembers,Segment(start,start+duration)))
|
| 264 |
currList.append((currMembers,Segment(start,start+duration)))
|
|
|
|
|
|
|
| 265 |
categorySegmentList.append(currList)
|
| 266 |
# Check where we left off
|
| 267 |
if endTime != maxTime:
|
|
|
|
| 255 |
if tracking:
|
| 256 |
singleDimList.append((currMembers,Segment(start,start+duration)))
|
| 257 |
currList.append((currMembers,Segment(start,start+duration)))
|
| 258 |
+
if start+duration > endTime:
|
| 259 |
+
endTime = start+duration
|
| 260 |
start = None
|
| 261 |
currMembers == None
|
| 262 |
duration = 0
|
|
|
|
| 264 |
if tracking:
|
| 265 |
singleDimList.append((currMembers,Segment(start,start+duration)))
|
| 266 |
currList.append((currMembers,Segment(start,start+duration)))
|
| 267 |
+
if start+duration > endTime:
|
| 268 |
+
endTime = start+duration
|
| 269 |
categorySegmentList.append(currList)
|
| 270 |
# Check where we left off
|
| 271 |
if endTime != maxTime:
|