LoadedPointKeys#

class movement.napari.convert.LoadedPointKeys(keys, frames, id_columns, n_keys)[source]#

Bases: object

Integer keys for the loaded points, to match against live napari points.

Each loaded point’s (frame, keypoint, individual) is encoded as an int, so matching can be done via array indexing.

keys#

Key of each row of the loaded properties table.

Type:

ndarray

frames#

Frame index of each row of the loaded properties table.

Type:

ndarray

id_columns#

(column, unique values) pairs for the identity columns (keypoint, individual) present in the loaded table.

Type:

tuple[tuple[str, Index], ...]

n_keys#

Number of possible keys.

Type:

int

Methods

from_properties(properties_with_nans)

Build keys for every row of the loaded properties table.

present(live_frames, live_properties)

Flag the loaded rows that have a matching live point.

classmethod from_properties(properties_with_nans)[source]#

Build keys for every row of the loaded properties table.

Return type:

LoadedPointKeys

present(live_frames, live_properties)[source]#

Flag the loaded rows that have a matching live point.

Return type:

ndarray