def test_lower_clip(aia171_test_clipping): assert(_lower_clip(aia171_test_clipping) == 2.0) # No element is less than zero test_array = np.asarray([1.1, 0.1, 3.0]) assert(_lower_clip(test_array) == 0)
def test_lower_clip(aia171_test_clipping): # No element is less than zero test_array = np.asarray([1.1, 0.1, 3.0]) assert (_lower_clip(test_array) == 0) assert (_lower_clip(aia171_test_clipping) == 2.0)
def test_lower_clip(): assert(_lower_clip(clip_test_array) == 2.0) # No element is less than zero test_array = np.asarray([1.1, 0.1, 3.0]) assert(_lower_clip(test_array) == 0)