Skip to content

funtracks.user_actions.user_delete_node

UserDeleteNode

UserDeleteNode(
    tracks: SolutionTracks,
    node: int,
    pixels: None | tuple[ndarray, ...] = None,
    _top_level: bool = True,
)

Bases: ActionGroup

Parameters:

Name Type Description Default
tracks SolutionTracks

The tracks to delete the node from.

required
node int

The node id to delete.

required
pixels tuple[ndarray, ...] | None

The pixels of the node in the segmentation, if known. Will be computed if not provided. Defaults to None.

None
_top_level bool

If True, add this action to the history and emit refresh. Set to False when used as a sub-action inside a compound action. Defaults to True.

True