#NEWLINE# def test_volumedata_copy_with_custom_mask( ) : #NEWLINE# #INDENT# mask = cortex . get_cortical_mask ( subj , xfmname , 'thick' ) #NEWLINE# mask [ 16 ] = True #NEWLINE# nmask = mask . sum ( ) #NEWLINE# data = np . random . randn ( nmask ) #NEWLINE# v = cortex . Volume ( data , subj , xfmname , mask = mask ) #NEWLINE# vc = v . copy ( v . data ) #NEWLINE# assert np . allclose ( v . data , v . data )