コード例 #1
0
def test_import_freesurfer_LUT_05():
    with raises(FileNotFoundError):
        import_freesurfer_LUT(FREESURFER_HOME / 'does_not_exist')
コード例 #2
0
def test_import_freesurfer_LUT_04():
    import_freesurfer_LUT(str(LUT_path))
コード例 #3
0
def test_import_freesurfer_LUT_02():
    del environ['FREESURFER_HOME']
    with raises(OSError):
        import_freesurfer_LUT()
コード例 #4
0
def test_import_freesurfer_LUT_03():
    import_freesurfer_LUT(LUT_path)
コード例 #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.]))