[go: up one dir, main page]

File: data.rst

package info (click to toggle)
dipy 1.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 14,828 kB
  • sloc: python: 63,790; makefile: 258; pascal: 167; sh: 131; ansic: 106
file content (51 lines) | stat: -rw-r--r-- 905 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.. _data:

====
Data
====

.. toctree::
   :maxdepth: 1

.. contents::
   :depth: 2


--------
Datasets
--------

Details about datasets available in DIPY are described in the table below:

.. include:: dataset_list.rst

The list of datasets can be retrieved using::

    from dipy.workflows.io import FetchFlow

    available_data = FetchFlow.get_fetcher_datanames().keys()


To retrieve all datasets, the following workflow can be run::

    from dipy.workflows.io import FetchFlow

    fetch_flow = FetchFlow()

    with TemporaryDirectory() as out_dir:
        fetch_flow.run(['all'])

If you want to download a particular dataset, you can do::

    from dipy.workflows.io import FetchFlow

    fetch_flow = FetchFlow()

    with TemporaryDirectory() as out_dir:
        fetch_flow.run(['bundle_fa_hcp'])

or::

    from dipy.data import fetch_bundle_fa_hcp

    files, folder = fetch_bundle_fa_hcp()