Skip to content

Commit

Permalink
Adding another tests case to chase test coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
drewoldag committed Feb 16, 2024
1 parent a5b94fa commit 8b79e84
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/qp/test_point_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ def test_point_metrics_digest(self):
sig_mad = point_sigma_mad.finalize([centroids])
assert np.isclose(sig_mad, SIGMAD, atol=1e-5)

configuration = {'tdigest_compression': 5000, 'num_bins': 1_000}
point_sigma_mad = PointSigmaMAD(**configuration)
centroids = point_sigma_mad.accumulate(zb, zspec)
sig_mad = point_sigma_mad.finalize([centroids])
assert np.isclose(sig_mad, SIGMAD, atol=1e-4)



def test_cde_loss_metric(self):
"""Basic test to ensure that the CDE Loss metric class is working."""
Expand Down

0 comments on commit 8b79e84

Please sign in to comment.