Skip to content

Commit

Permalink
By pass testing error due to version issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
shi-yu-wang authored Jun 12, 2024
1 parent 7517a0d commit 6e0d6f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/anomaly/test_dpad.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ def test_full(self):
self.model.save(dirname=join(rootdir, "tmp", "dpad"))
loaded_model = DeepPointAnomalyDetector.load(dirname=join(rootdir, "tmp", "dpad"))
loaded_alarms = loaded_model.get_anomaly_label(self.test_data)
n_loaded_alarms = np.sum(loaded_alarms.to_pd().values != 0)
try:
n_loaded_alarms = np.sum(loaded_alarms.to_pd().values != 0)
except:
n_loaded_alarms = sum(loaded_alarms.to_pd().values != 0)
self.assertAlmostEqual(n_loaded_alarms, n_alarms, delta=1)

# Evaluation
Expand Down

0 comments on commit 6e0d6f8

Please sign in to comment.