TemplateInfo#

class brainglobe_atlasapi.atlas_generation.atlas_packaging_data.TemplateInfo(name, version, use_existing=False, update_existing=False, existing_version=None, existing_stub=None, stub=None, metadata=<factory>, *, root_dir='templates', file_name='template.ome.zarr')[source]#

Bases: ComponentInfo

Container for the template component of a BrainGlobe atlas.

This dataclass holds information about a template component of a BrainGlobe atlas. It inherits from ComponentInfo and specifies the root directory and file name for template components.

root_dir#

The root directory for template components (default is descriptors.V3_TEMPLATE_ROOTDIR).

Type:

str, optional

file_name#

The name of the template component file (default is descriptors.V3_TEMPLATE_NAME).

Type:

str, optional

Methods

generate_metadata_dict()

Generate a dictionary containing metadata for this component.

Attributes

existing_stub

existing_version

file_name

root_dir

stub

update_existing

use_existing

name

version

metadata

generate_metadata_dict()#

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]