You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Test that these bounds correspond to the correct probability levels
544
-
TT.@test_broken DT.generalized_gamma_cdf(νr, μr, Br, x_min) ≈ p# it's a bit unstable at very low values
545
-
TT.@test_broken DT.generalized_gamma_cdf(νr, μr, Br, x_max) ≈1- p#TODO: fix this -- not clear why this doesn't work, seems like an issue with SpecialFunctions.jl??
544
+
TT.@test DT.generalized_gamma_cdf(νr, μr, Br, x_min) ≈ p
545
+
TT.@test DT.generalized_gamma_cdf(νr, μr, Br, x_max) ≈1- p
546
546
TT.@test DT.exponential_cdf(Dr_mean, D_min) ≈ p
547
547
TT.@test DT.exponential_cdf(Dr_mean, D_max) ≈1- p
548
548
549
549
# Sanity checks for number concentrations for rain
# Test that these bounds correspond to the correct probability levels
630
630
TT.@test DT.generalized_gamma_cdf(νc, μc, Bc, x_min) ≈ p
631
631
TT.@test DT.generalized_gamma_cdf(νc, μc, Bc, x_max) ≈1- p
632
-
TT.@test_broken DT.generalized_gamma_cdf(νcD, μcD, λc, D_min) ≈ p#TODO: fix this -- not clear why this doesn't work, seems like an issue with SpecialFunctions.jl??
632
+
TT.@test DT.generalized_gamma_cdf(νcD, μcD, λc, D_min) ≈ p
633
633
TT.@test DT.generalized_gamma_cdf(νcD, μcD, λc, D_max) ≈1- p
634
634
635
635
636
636
# Sanity checks of specific content and number concentration with mass distribution
637
637
Nx = QGK.quadgk(Mⁿ(0, f_x), x_min, x_max)[1]
638
638
qx = QGK.quadgk(Mⁿ(1, f_x), x_min, x_max)[1] / ρₐ
639
-
TT.@test qx ≈ qₗ
640
-
TT.@test Nx ≈ Nₗ
639
+
TT.@test qx ≈ qₗ rtol =1e-5
640
+
TT.@test Nx ≈ Nₗ rtol =1e-5
641
641
642
642
# Sanity checks of specific content and number concentration with diameter distribution
0 commit comments