def test_constant_data():
 shape = (10, 10)
 data = np.ones(shape)
 interval = MinMaxInterval()
 limits = interval.get_limits(data)
 values = interval(data)
 np.testing.assert_allclose(limits, (1.0, 1.0))
 np.testing.assert_allclose(values, np.zeros(shape))

def test_constant_data ( ) : shape = ( 10 , 10 ) data = np . ones ( shape ) interval = MinMaxInterval ( ) limits = interval . get_limits ( data ) values = interval ( data ) np . testing . assert_allclose ( limits , ( 1.0 , 1.0 ) ) np . testing . assert_allclose ( values , np . zeros ( shape ) )
test intervals with constant data .