MaskCentering

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

Bases: _Updater

Masks not containing the stored_centering parameters. Prior to this implementation all masks were stored with face centering

Attributes Summary

is_updated

True if this updater has been run otherwise False

Methods Summary

test()

Mask centering was introduced in alignments version 2.2

update()

Add the mask key to the alignment file and update the centering of existing masks

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

Mask centering was introduced in alignments version 2.2

Return type:

True mask centering requires updating otherwise False

update() int

Add the mask key to the alignment file and update the centering of existing masks

Return type:

The number of masks that were updated

test() bool

Mask centering was introduced in alignments version 2.2

Return type:

True mask centering requires updating otherwise False

update() int

Add the mask key to the alignment file and update the centering of existing masks

Return type:

The number of masks that were updated