Passed
Push — master ( 178654...c7af60 )
by Fernando
01:30
created

torchio.datasets.mni.mni   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A SubjectMNI.download_root() 0 3 1
1
from ... import Subject
2
from ...utils import get_torchio_cache_dir
3
4
5
class SubjectMNI(Subject):
6
    """Atlases from the Montreal Neurological Institute (MNI).
7
8
    See `the website <http://nist.mni.mcgill.ca/?page_id=714>`_
9
    for more information.
10
    """
11
    url_base = 'http://packages.bic.mni.mcgill.ca/mni-models/'
12
13
    @property
14
    def download_root(self):
15
        return get_torchio_cache_dir() / self.name
16