fixed bug introduced in my last commit : the number of frames of a sequence was alwys 0 when no frame was missing
This commit is contained in:
parent
52dbaeeb4f
commit
4836bc5f7a
|
@ -64,13 +64,13 @@ class Sequence(object):
|
||||||
summary = self.mmm['Summary']
|
summary = self.mmm['Summary']
|
||||||
num_frames = int(summary['Frames'])
|
num_frames = int(summary['Frames'])
|
||||||
# handle the case where the recording has been cancelled by the user and therefore the actual number of frames is lower than initially planned
|
# handle the case where the recording has been cancelled by the user and therefore the actual number of frames is lower than initially planned
|
||||||
num_existing_frames = 0
|
num_existing_frames = num_frames
|
||||||
for frame_index in range(num_frames):
|
for frame_index in range(num_frames):
|
||||||
frame_key_key = 'FrameKey-%d-0-0' % (frame_index)
|
frame_key_key = 'FrameKey-%d-0-0' % (frame_index)
|
||||||
if not frame_key_key in self.mmm.keys():
|
if frame_key_key not in self.mmm.keys():
|
||||||
|
# print('missing frame : %s' % frame_key_key)
|
||||||
num_existing_frames = frame_index
|
num_existing_frames = frame_index
|
||||||
break
|
break
|
||||||
|
|
||||||
return num_existing_frames
|
return num_existing_frames
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue