CopickPicks
copick.models.CopickPicks
Encapsulates all data pertaining to a specific set of picked points. This includes the locations, orientations, and other metadata for the set of points.
Attributes:
-
run(CopickRun) –Reference to the run this pick belongs to.
-
meta(CopickPicksFile) –Metadata for this pick.
-
points(List[CopickPoint]) –Points for this pick. Either populated from storage or lazily loaded when
CopickPicks.pointsis accessed for the first time. -
from_tool(bool) –Flag to indicate if this pick was generated by a tool.
-
pickable_object_name(str) –Pickable object name from
CopickConfig.pickable_objects[...].name -
user_id(str) –Unique identifier for the user or tool name.
-
session_id(str) –Unique identifier for the pick session
-
trust_orientation(bool) –Flag to indicate if the angles are known for this pick or should be ignored.
-
color(Union[Tuple[int, int, int, int], None]) –Color of the pickable object this pick belongs to.
__init__
Parameters:
-
run(CopickRun) –Reference to the run this pick belongs to.
-
file(CopickPicksFile) –Metadata for this set of points.
load
numpy
Return the points as a [N, 3] numpy array (N, [x, y, z]) and the transforms as a [N, 4, 4] numpy array. Format of the transforms is:
Returns:
-
Tuple[ndarray, ndarray]–Tuple[np.ndarray, np.ndarray]: The picks and transforms as numpy arrays.
from_numpy
Set the points and transforms from numpy arrays.
Parameters:
-
positions(ndarray) –[N, 3] numpy array of positions (N, [x, y, z]).
-
transforms(Optional[ndarray], default:None) –
df
Returns the points as a pandas DataFrame with columns based on the format.