#NEWLINE# def test_supersmoother_dy_scalar( N = 100 , period = 1 ) : #NEWLINE# #INDENT# ( t , y , dy ) = _generate_data ( N , period ) #NEWLINE# dy [ : ] = dy . mean ( ) #NEWLINE# periods = np . linspace ( ( period / 2 ) , ( period * 2 ) , 100 ) #NEWLINE# assert_equal ( SuperSmoother ( ) . fit ( t , y , dy ) . score ( periods ) , SuperSmoother ( ) . fit ( t , y , dy [ 0 ] ) . score ( periods ) )