Dynamic Annotation DB package¶
dynamicannotationdb.errors module¶
-
exception
dynamicannotationdb.errors.
AnnotationInsertLimitExceeded
(limit: int, length: int, message: str = 'Annotation limit exceeded')[source]¶ Bases:
ValueError
Exception raised when amount of annotations exceeds defined limit.
-
exception
dynamicannotationdb.errors.
IdsAlreadyExists
[source]¶ Bases:
KeyError
Annotation IDs already exists in the segmentation table
-
exception
dynamicannotationdb.errors.
NoAnnotationsFoundWithID
(anno_id: int)[source]¶ Bases:
Exception
No annotation found with specified ID
-
exception
dynamicannotationdb.errors.
TableAlreadyExists
[source]¶ Bases:
KeyError
Table name already exists in the Metadata table
dynamicannotationdb.key_utils module¶
-
dynamicannotationdb.key_utils.
build_segmentation_table_name
(annotation_table_name: str, segmentation_source: str) → str[source]¶ Creates a table name that combines annotation table and appends segmentation table name
- Parameters
annotation_table_name (str) – exiting annotation table name
pcg_table_name (str) – name of chunkedgraph table
- Returns
formatted name of table combining the annotation table id with chunkedgraph segmentation source name
- Return type
str
-
dynamicannotationdb.key_utils.
build_table_id
(aligned_volume: str, table_name: str) → str[source]¶ Combines aligned_volume name and specified table name to create specific table id
- Parameters
aligned_volume (str) – name of aligned volume
table_name (str) – name of table assigned to an aligned volume
- Returns
formatted table_id
- Return type
str