brainglobe_atlasapi.utils#

Description

Provide utility functions for brainglobe-atlasapi.

Functions

atlas_name_from_repr

Generate atlas name given a description.

atlas_repr_from_name

Generate dictionary with atlas description given the name.

check_gin_status

Check that the GIN server is up.

check_internet_connection

Check that there is an internet connection url : str url to use for testing (Default value = 'http://www.google.com/') timeout : int timeout to wait for [in seconds] (Default value = 5). raise_error : bool if false, warning but no error.

conf_from_file

Read a configuration file from a local file path.

conf_from_url

Read conf file from a URL and cache a copy of the configuration file in the brainglobe directory.

get_download_size

Get file size based on the MB value on the "src" page of each atlas.

read_json

Read a json file.

read_tiff

Read a tiff file.

retrieve_over_http

Download file from remote location, with progress bar.