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
editedat load (removed in an earlier session).- Parameters:
properties_with_nans (
DataFrame) – Properties DataFrame of the loaded dataset, including the NaN position rows flagged in itsposition_is_nancolumn.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 forproperties_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: