def test_det_cat_fct(pred, obs, thr, scores, expected):
    """Test the det_cat_fct."""
    assert_array_almost_equal(
        list(det_cat_fct(pred, obs, thr, scores).values()), expected
    )
Test the det_cat_fct.
pysteps/tests/test_verification_detcatscores.py