brainglobe
Search
⌃K

utils

Contents

check_internet_connection [#14]

Check the source code online
def check_internet_connection(url='http://www.google.com/', timeout=5,
raise_error=True):
  docstring:
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.

retrieve_over_http [#39]

Check the source code online
def retrieve_over_http(url, output_file_path):
  docstring:
Download file from remote location, with progress bar.
Parameters
----------
url : str
Remote URL.
output_file_path : str or Path
Full file destination for download.

conf_from_url [#71]

Check the source code online
def conf_from_url(url):
  docstring:
Read conf file from an URL.
Parameters
----------
url : str
conf file url (in a repo, make sure the "raw" url is passed)
Returns
-------
conf object

get_latest_atlases_version [#90]

Check the source code online
def get_latest_atlases_version():
  docstring:
no docstring

read_json [#98]

Check the source code online
def read_json(path):
  docstring:
no docstring

read_tiff [#104]

Check the source code online
def read_tiff(path):
  docstring:
no docstring