#NEWLINE# def test_nabsH( self ) : #NEWLINE# #INDENT# 'Test function for nabsH()' #NEWLINE# H = ( [ 1 , 2 ] , [ 2 , 0 , 0.25 ] , 1 ) #NEWLINE# N = 129 #NEWLINE# w = np . linspace ( 0 , ( 2 * np . pi ) , num = N , endpoint = True ) #NEWLINE# z = np . exp ( ( 1j * w ) ) #NEWLINE# r1 = ( - np . abs ( ds . evalTF ( H , z ) ) ) #NEWLINE# r2 = ds . nabsH ( w , self ) #NEWLINE# self . assertTrue ( np . allclose ( r1 , r2 , atol = 1e-08 , rtol = 1e-05 ) )