CoordinateSpaceInfo#
- class brainglobe_atlasapi.atlas_generation.atlas_packaging_data.CoordinateSpaceInfo(name: str, version: str, use_existing: bool = False, update_existing: bool = False, existing_version: str | None = None, existing_stub: str | None = None, stub: str | None = None, metadata: dict = <factory>, *, root_dir: str = 'coordinate-spaces', file_name: str = 'manifest.json', template: ~brainglobe_atlasapi.atlas_generation.atlas_packaging_data.TemplateInfo)[source]#
Bases:
ComponentInfoContainer for information about a coordinate space component of a BrainGlobe atlas.
This dataclass holds information about a coordinate space component of a BrainGlobe atlas. It inherits from ComponentInfo and specifies the root directory and file name for coordinate space components.
Overrides the __post_init__ method to include template metadata in the coordinate space metadata.
- template#
The TemplateInfo object associated with this coordinate space.
- Type:
- root_dir#
The root directory for coordinate space components (default is descriptors.V2_COORDINATE_SPACE_ROOTDIR).
- Type:
str, optional
- file_name#
The name of the coordinate space component file (default is “manifest.json”).
- Type:
str, optional
Methods
Generate a dictionary containing metadata for this component.
Attributes
existing_stubexisting_versionstubupdate_existinguse_existingnameversionmetadata- generate_metadata_dict() Dict[str, str]#
Generate a dictionary containing metadata for this component.
The metadata dictionary includes the component’s name, version, and location stub.
- Returns:
A dictionary containing the component metadata.
- Return type:
Dict[str, str]