def test_import_freesurfer_LUT_05(): with raises(FileNotFoundError): import_freesurfer_LUT(FREESURFER_HOME / 'does_not_exist')
def test_import_freesurfer_LUT_04(): import_freesurfer_LUT(str(LUT_path))
def test_import_freesurfer_LUT_02(): del environ['FREESURFER_HOME'] with raises(OSError): import_freesurfer_LUT()
def test_import_freesurfer_LUT_03(): import_freesurfer_LUT(LUT_path)
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.]))