IdentityAndVideoMeta

class lib.align.updater.IdentityAndVideoMeta(alignments: dict[str, Any], version: float)

Bases: _Updater

Prior to version 2.3 the identity key did not exist and the video_meta key was not compulsory. These should now both always appear, but do not need to be populated.

Attributes Summary

is_updated

True if this updater has been run otherwise False

Methods Summary

test()

Identity Key was introduced in alignments version 2.3

update()

Add the video_meta and identity keys to the alignment file and leave empty

Attributes Documentation

Parameters:
  • alignments (dict[str, T.Any])

  • version (float)

is_updated

True if this updater has been run otherwise False

Methods Documentation

test() bool

Identity Key was introduced in alignments version 2.3

Return type:

True identity key needs inserting otherwise False

update() int

Add the video_meta and identity keys to the alignment file and leave empty

Return type:

The number of keys inserted

test() bool

Identity Key was introduced in alignments version 2.3

Return type:

True identity key needs inserting otherwise False

update() int

Add the video_meta and identity keys to the alignment file and leave empty

Return type:

The number of keys inserted