brainglobe
Search…
utils

Contents

check_internet_connection [#14]

Check the source code online
1
def check_internet_connection(url='http://www.google.com/', timeout=5,
2
raise_error=True):
Copied!
  docstring:
1
Check that there is an internet connection
2
​
3
url : str
4
​
5
url to use for testing (Default value = 'http://www.google.com/')
6
​
7
timeout : int
8
​
9
timeout to wait for [in seconds] (Default value = 5).
10
​
11
raise_error : bool
12
​
13
if false, warning but no error.
Copied!

retrieve_over_http [#39]

Check the source code online
1
def retrieve_over_http(url, output_file_path):
Copied!
  docstring:
1
Download file from remote location, with progress bar.
2
​
3
Parameters
4
​
5
----------
6
​
7
url : str
8
​
9
Remote URL.
10
​
11
output_file_path : str or Path
12
​
13
Full file destination for download.
Copied!

conf_from_url [#71]

Check the source code online
1
def conf_from_url(url):
Copied!
  docstring:
1
Read conf file from an URL.
2
​
3
Parameters
4
​
5
----------
6
​
7
url : str
8
​
9
conf file url (in a repo, make sure the "raw" url is passed)
10
​
11
Returns
12
​
13
-------
14
​
15
conf object
Copied!

get_latest_atlases_version [#90]

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

read_json [#98]

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

read_tiff [#104]

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