webknossos.dataset.attachments
¶
AgglomerateAttachment
¶
AgglomerateAttachment(properties: AttachmentProperties, path: UPath)
Bases: Attachment
from_path_and_name
classmethod
¶
from_path_and_name(path: UPath, name: str, *, data_format: AttachmentDataFormat, dataset_path: UPath | None = None) -> Self
Attachment
¶
Attachment(properties: AttachmentProperties, path: UPath)
from_path_and_name
classmethod
¶
from_path_and_name(path: UPath, name: str, *, data_format: AttachmentDataFormat, dataset_path: UPath | None = None) -> Self
Attachments
¶
Attachments(layer: SegmentationLayer, properties: AttachmentsProperties)
agglomerates
class-attribute
instance-attribute
¶
agglomerates: tuple[AgglomerateAttachment, ...] = ()
segment_index
class-attribute
instance-attribute
¶
segment_index: SegmentIndexAttachment | None = None
add_agglomerate
¶
add_agglomerate(path: str | PathLike, *, name: str, data_format: AttachmentDataFormat) -> None
add_connectome
¶
add_connectome(path: str | PathLike, *, name: str, data_format: AttachmentDataFormat) -> None
add_symlink_attachments
¶
add_symlink_attachments(*other: Attachment, make_relative: bool = False) -> None
detect_legacy_attachments
¶
detect_legacy_attachments() -> None
Detects and adds legacy attachments. Legacy attachments are attachments that were stored in the folder hierarchy of the layer without explicit metadata.
set_cumsum
¶
set_cumsum(path: str | PathLike, *, name: str, data_format: AttachmentDataFormat) -> None
set_segment_index
¶
set_segment_index(path: str | PathLike, *, name: str, data_format: AttachmentDataFormat) -> None
ConnectomeAttachment
¶
ConnectomeAttachment(properties: AttachmentProperties, path: UPath)
Bases: Attachment
from_path_and_name
classmethod
¶
from_path_and_name(path: UPath, name: str, *, data_format: AttachmentDataFormat, dataset_path: UPath | None = None) -> Self
CumsumAttachment
¶
CumsumAttachment(properties: AttachmentProperties, path: UPath)
Bases: Attachment
from_path_and_name
classmethod
¶
from_path_and_name(path: UPath, name: str, *, data_format: AttachmentDataFormat, dataset_path: UPath | None = None) -> Self
MeshAttachment
¶
MeshAttachment(properties: AttachmentProperties, path: UPath)
Bases: Attachment
from_path_and_name
classmethod
¶
from_path_and_name(path: UPath, name: str, *, data_format: AttachmentDataFormat, dataset_path: UPath | None = None) -> Self
SegmentIndexAttachment
¶
SegmentIndexAttachment(properties: AttachmentProperties, path: UPath)
Bases: Attachment
from_path_and_name
classmethod
¶
from_path_and_name(path: UPath, name: str, *, data_format: AttachmentDataFormat, dataset_path: UPath | None = None) -> Self
- Get Help
- Community Forums
- Email Support