MCPcopy Index your code
hub / github.com/diffgram/diffgram / new

Method new

shared/database/video/sequence.py:351–376  ·  view source on GitHub ↗

Does NOT add to session. In general this is rarely called directly, see .update() method.

(number,
            video_file_id,
            label_file)

Source from the content-addressed store, hash-verified

349
350 @staticmethod
351 def new(number,
352 video_file_id,
353 label_file):
354 """
355 Does NOT add to session.
356
357 In general this is rarely called directly, see .update() method.
358
359 """
360
361 sequence = Sequence()
362
363 sequence.number = number
364 sequence.video_file_id = video_file_id
365
366 sequence.keyframe_list = {}
367 sequence.keyframe_list['frame_number_list'] = []
368
369 if label_file:
370 sequence.label_file_id = label_file.id
371 else:
372 logger.debug(
373 "label_file is None, this is unusual. video_file_id was: " + str(video_file_id) + " number was " + str(
374 number))
375
376 return sequence
377
378 @staticmethod
379 def list(

Callers 1

updateMethod · 0.45

Calls 1

SequenceClass · 0.85

Tested by

no test coverage detected