Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _run(self, errors, expected):
found = find_anomalies(np.asarray(errors), self.INDEX)
assert_allclose(found, expected)