LandmarkRename
- class lib.align.updater.LandmarkRename(alignments: dict[str, Any], version: float)
Bases:
_UpdaterLandmarks renamed from landmarksXY to landmarks_xy for PEP compliance
Attributes Summary
Trueif this updater has been run otherwiseFalseMethods Summary
test()check for legacy landmarksXY keys.
update()Update legacy landmarksXY keys to PEP compliant landmarks_xy keys.
Attributes Documentation
- Parameters:
alignments (dict[str, T.Any])
version (float)
- is_updated
Trueif this updater has been run otherwiseFalse
Methods Documentation
- test() bool
check for legacy landmarksXY keys.
- Return type:
Trueif the alignments file contains legacy landmarksXY keys otherwiseFalse
- update() int
Update legacy landmarksXY keys to PEP compliant landmarks_xy keys.
- Return type:
The number of landmarks keys that were changed
- test() bool
check for legacy landmarksXY keys.
- Return type:
Trueif the alignments file contains legacy landmarksXY keys otherwiseFalse
- update() int
Update legacy landmarksXY keys to PEP compliant landmarks_xy keys.
- Return type:
The number of landmarks keys that were changed