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, float | int | str | bool | List[float] | List[int] | List[str] | List[bool]])
Bases:
NamedTupleRepresents a snapshot of all information of a position in a single class. This is useful if you want to restore a previous state.
- 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.
- position_data: Dict[str, float | int | str | bool | List[float] | List[int] | List[str] | List[bool]]
Alias for field number 3
- static position_with_links(position: Position, *, links: List[Position]) FullPositionSnapshot
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.