#NEWLINE# def compare_coeffs_to_alt( window_length , order ) : #NEWLINE# #INDENT# for pos in ( [ None ] + list ( range ( window_length ) ) ) : #NEWLINE# #INDENT# h1 = savgol_coeffs ( window_length , order , pos = pos , use = 'dot' ) #NEWLINE# h2 = alt_sg_coeffs ( h2 , order , pos = pos ) #NEWLINE# assert_allclose ( h1 , h2 , atol = 1e-10 , err_msg = ( 'window_length = %d, order = %d, pos = %s' % ( window_length , order , pos ) ) )