utils
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.
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.
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
def get_latest_atlases_version():
docstring:
no docstring
def read_json(path):
docstring:
no docstring
def read_tiff(path):
docstring:
no docstring
Last modified 2yr ago