CopickConfig
copick.models.CopickConfig
Bases: BaseModel
Configuration for a copick project. Defines the available objects, user_id and optionally an index for runs.
Attributes:
-
name(Optional[str]) –Name of the CoPick project.
-
description(Optional[str]) –Description of the CoPick project.
-
version(Optional[str]) –Version of the CoPick API.
-
pickable_objects(List[PickableObject]) –Index for available pickable objects.
-
user_id(Optional[str]) –Unique identifier for the user (e.g. when distributing the config file to users).
-
session_id(Optional[str]) –Unique identifier for the session.
-
voxel_spacings(Optional[List[float]]) –Index for available voxel spacings.
-
runs(Optional[List[str]]) –Index for run names.
-
tomograms(Optional[Dict[float, List[str]]]) –Index for available voxel spacings and tomogram types.
from_file
Load a CopickConfig from a file and create a CopickConfig object.
Parameters:
-
filename(str) –path to the file
Returns:
-
CopickConfig(CopickConfig) –Initialized CopickConfig object