check_struct_consistency#

brainglobe_atlasapi.atlas_generation.structures.check_struct_consistency(structures)[source]#

Ensure internal consistency of the structures list.

Checks that each structure dictionary in the list has all the required keys and that their values are of the correct types, as defined by STRUCTURE_TEMPLATE.

Parameters:

structures (list of dict) – A list of dictionaries, where each dictionary represents a brain structure with its properties.

Return type:

None

Raises:

AssertionError – If any structure dictionary is missing required keys, or if the types of values do not match the expected template.