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_compare(self):
""" lets at least be sure that large distances are captured """
d1 = heat(
np.array([[0.5, 1]]),
np.array([[0.5, 1.1]])
)
d2 = heat(
np.array([[0.5, 1]]),
np.array([[0.5, 1.5]])
)
# These are very loose bounds
assert d1 < d2
def test_compare(self):
""" lets at least be sure that large distances are captured """
d1 = heat(
np.array([[0.5, 1]]),
np.array([[0.5, 1.1]])
)
d2 = heat(
np.array([[0.5, 1]]),
np.array([[0.5, 1.5]])
)
# These are very loose bounds
assert d1 < d2