catch_missing_structures#
- brainglobe_atlasapi.atlas_generation.validate_atlases.catch_missing_structures(atlas: BrainGlobeAtlas)[source]#
Check if all mesh files in the atlas folder are listed as a structure.
- Parameters:
atlas (BrainGlobeAtlas) – The BrainGlobeAtlas object to validate.
- Returns:
True if all mesh files have a corresponding entry in the atlas’s structures.
- Return type:
bool
- Raises:
AssertionError – If any .obj file found in the atlas’s ‘meshes’ directory does not have a corresponding structure ID in atlas.structures.