Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_encircled_energy():
data = numpy.random.rand(32, 32)
ee50d = image_processing.encircled_energy(data)
print(ee50d)
assert type(ee50d) == float
def test_encircledEnergy_func():
data = numpy.random.rand(32, 32)
x, y = image_processing.encircled_energy(data, eeDiameter=False)
print(y.min(), y.max())
assert len(x) == len(y)
assert numpy.max(y) <= 1
assert numpy.min(y) >= 0
def test_encircledEnergy():
data = numpy.random.rand(32, 32)
ee50d = image_processing.encircled_energy(data)
print(ee50d)
assert type(ee50d) == float