validate_unique_acronyms#

brainglobe_atlasapi.atlas_generation.validate_atlases.validate_unique_acronyms(atlas: BrainGlobeAtlas)[source]#

Validate that all structure acronyms in the atlas are unique.

Duplicate acronyms are incompatible with the current implementation of brainglobe-atlasapi as the acronym is used as a primary key to fetch details for a region.

Parameters:

atlas (BrainGlobeAtlas) – The BrainGlobeAtlas object to validate.

Returns:

True if all acronyms are unique.

Return type:

bool

Raises:

AssertionError – If any duplicate acronyms are found in the atlas structures.