organoid_tracker.core.full_position_snapshot module

class organoid_tracker.core.full_position_snapshot.FullPositionSnapshot(position: Position, links: List[Position], connections: List[Position], position_data: Dict[str, Union[float, int, str, bool, List[float], List[int], List[str], List[bool]]])

Bases: NamedTuple

Represents a snapshot of all information of a position in a single class. This is useful if you want to restore a previous state.

connections: List[Position]

Alias for field number 2

static from_position(experiment: Experiment, position: Position) FullPositionSnapshot

Gets a snapshot of all information of a position.

static just_position(position: Position) FullPositionSnapshot

Creates a particle for a position that has no known shape, no links and no data.

Alias for field number 1

position: Position

Alias for field number 0

position_data: Dict[str, Union[float, int, str, bool, List[float], List[int], List[str], List[bool]]]

Alias for field number 3

Creates a particle for a position that has no known data, but that has links to the given positions.

restore(experiment: Experiment)

Restores a position, its shape, its metadata and its links.