normalize_manifest#

brainglobe_atlasapi.manifest.normalize_manifest(raw, resolution, root_dir)[source]#

Return manifest metadata in the shape core.Atlas consumes.

BrainGlobe manifests are returned unchanged. atlas-assets manifests are reshaped by _normalize_atlas_assets.

Parameters:
  • raw (dict) – Parsed atlas manifest.json.

  • resolution (float or None) – Requested resolution, in micrometres: the first axis of a non-isotropic atlas, e.g. 16 for 16 x 16 x 20 um. Defaults to the finest available, with a printed note when there is more than one to choose from; if the manifest has a single fixed resolution instead (a BrainGlobe manifest), a mismatching value raises.

  • root_dir (Path) – Local cache namespace directory holding the downloaded assets.

Returns:

Metadata in BrainGlobe’s shape.

Return type:

dict

Raises:

ValueError – If resolution matches no available pyramid level.