Exemplo n.º 1
0
def test_import_freesurfer_LUT_05():
    with raises(FileNotFoundError):
        import_freesurfer_LUT(FREESURFER_HOME / 'does_not_exist')
Exemplo n.º 2
0
def test_import_freesurfer_LUT_04():
    import_freesurfer_LUT(str(LUT_path))
Exemplo n.º 3
0
def test_import_freesurfer_LUT_02():
    del environ['FREESURFER_HOME']
    with raises(OSError):
        import_freesurfer_LUT()
Exemplo n.º 4
0
def test_import_freesurfer_LUT_03():
    import_freesurfer_LUT(LUT_path)
Exemplo n.º 5
0
def test_import_freesurfer_LUT_01():
    idx, label, rgba = import_freesurfer_LUT()
    assert idx[-1] == 14175
    assert label[-1] == 'wm_rh_S_temporal_transverse'
    assert_array_equal(rgba[-1, :], array([221., 60., 60., 0.]))