#NEWLINE# def test1( self ) : #NEWLINE# #INDENT# 'Read data into one big segment (default)' #NEWLINE# full_range = ( 8192 * pq . mV ) #NEWLINE# bio = neo . io . blackrockio_deprecated . BlackrockIO ( filename = self . fn , full_range = full_range ) #NEWLINE# block = bio . read_block ( n_starts = [ 0 ] , n_stops = [ 6 ] ) #NEWLINE# self . assertEqual ( bio . header . Channel_Count , 2 ) #NEWLINE# self . assertEqual ( bio . header . n_samples , 6 ) #NEWLINE# self . assertEqual ( len ( block . segments ) , 1 ) #NEWLINE# seg = block . segments [ 0 ] #NEWLINE# self . assertEqual ( len ( seg . analogsignals ) , 2 ) #NEWLINE# assert_arrays_almost_equal ( seg . analogsignals [ 0 ] , ( [ 3.0 , 4.0 , 5.0 , ( - 3.0 ) , ( - 4.0 ) , ( - 5.0 ) ] * pq . mV ) , 0.0001 ) #NEWLINE# assert_arrays_almost_equal ( seg . analogsignals [ 1 ] , ( [ 6.0 , ( - 4.0 ) , ( - 5.0 ) , ( - 6.0 ) , 4.0 , 5.0 ] * pq . mV ) , 0.0001 )