brainglobe_atlasapi.remotes#

Description

Work out which remote an atlas comes from and where it is cached.

Each remote is mirrored in its own directory under the brainglobe directory, holding a record of the remote it mirrors.

Functions

cache_key

Return the local cache directory name for a remote.

check_remote

Check a cache directory does not mirror a different remote.

known_remotes

List the remotes whose local cache may hold an atlas.

record_remote

Record which remote a cache directory mirrors, if unrecorded.

resolve_remote

Find which configured remote holds an atlas.