data
¶
Read or fetch test or example data.
|
Returns the directory component of a pathname |
Download icons for fury |
|
Download the models for shader tutorial |
|
Download textures for fury |
|
Download the following wiki informationInterdisciplinary map of the journals |
|
|
Join two or more pathname components, inserting ‘/’ as needed. |
|
Read specific icon from specific style. |
|
Read specific model. |
|
Read specific texture. |
Module: data.fetcher
¶
Fetcher based on dipy.
|
Check the generated sha checksum. |
|
copy data from file-like object fsrc to file-like object fdst |
|
|
|
Download files to folder and checks their sha checksums. |
Download icons for fury |
|
Download the models for shader tutorial |
|
Download textures for fury |
|
Download the following wiki informationInterdisciplinary map of the journals |
|
|
Join two or more pathname components, inserting ‘/’ as needed. |
|
Read specific icon from specific style. |
|
Read specific model. |
|
Read specific texture. |
Returns a sha256 hash object; optionally initialized with a string |
|
|
Show progressbar. |
fetch_viz_wiki_nw¶
-
fury.data.
fetch_viz_wiki_nw
()¶ Download the following wiki informationInterdisciplinary map of the journals
pjoin¶
-
fury.data.
pjoin
(a, *p)¶ Join two or more pathname components, inserting ‘/’ as needed. If any component is an absolute path, all previous path components will be discarded. An empty last part will result in a path that ends with a separator.
read_viz_icons¶
read_viz_models¶
read_viz_textures¶
check_sha¶
copyfileobj¶
copyfileobj_withprogress¶
fetch_data¶
-
fury.data.fetcher.
fetch_data
(files, folder, data_size=None)[source]¶ Download files to folder and checks their sha checksums.
- Parameters
files (dictionary) – For each file in files the value should be (url, sha). The file will be downloaded from url if the file does not already exist or if the file exists but the sha checksum does not match.
folder (str) – The directory where to save the file, the directory will be created if it does not already exist.
data_size (str, optional) – A string describing the size of the data (e.g. “91 MB”) to be logged to the screen. Default does not produce any information about data size.
- Raises
FetcherError – Raises if the sha checksum of the file does not match the expected value. The downloaded file is not deleted when this error is raised.
fetch_viz_wiki_nw¶
-
fury.data.fetcher.
fetch_viz_wiki_nw
()¶ Download the following wiki informationInterdisciplinary map of the journals
pjoin¶
-
fury.data.fetcher.
pjoin
(a, *p)¶ Join two or more pathname components, inserting ‘/’ as needed. If any component is an absolute path, all previous path components will be discarded. An empty last part will result in a path that ends with a separator.