removed_points_mask#

movement.napari.convert.removed_points_mask(properties_with_nans, live_frames, live_properties, keys=None)[source]#

Flag the loaded points that count as removed.

A point counts as removed if it has no corresponding live napari point and was either present at load (removed in this session) or flagged as edited at load (removed in an earlier session).

Parameters:
  • properties_with_nans (DataFrame) – Properties DataFrame of the loaded dataset, including the NaN position rows flagged in its position_is_nan column.

  • live_frames (ndarray) – Frame index of each live point.

  • live_properties – Live point properties (DataFrame or dict of arrays), with the identity columns of properties_with_nans.

  • keys (LoadedPointKeys | None) – Precomputed keys for properties_with_nans, to avoid rebuilding them on every call. Built here if not given.

Returns:

Boolean mask, row-aligned with properties_with_nans.

Return type:

ndarray