test_h0_utils

Module Contents

Classes

TestH0Utils A suite of tests verifying that the input PDFs and the sample distributions
class test_h0_utils.TestH0Utils(methodName='runTest')[source]

Bases: unittest.TestCase

A suite of tests verifying that the input PDFs and the sample distributions match.

classmethod setUpClass(cls)[source]

Hook method for setting up class fixture before running tests in the class.

setUp(self)[source]

Hook method for setting up the test fixture before exercising it.

test_gaussian_ll_pdf(self)[source]

Test the unnormalized log normal PDF

test_pred_to_natural_gaussian(self)[source]

Test if the predicted mu, cov are being transformed back correctly into natural (original) space

test_reorder_to_tdlmc(self)[source]

Test if reordering the lenstronomy dec array –> increasing dec –> ABCD ordering of TDLMC is correct

test_CosmoConverter(self)[source]

Test that CosmoConverter can handle array types

test_get_lognormal_stats(self)[source]

Test if the correct lognormal stats are generated from lognormal samples

test_get_lognormal_stats_naive(self)[source]

Test if the correct lognormal stats are generated from uniform samples with lognormal weights

test_get_normal_stats(self)[source]

Test if the correct normal stats are generated from normal samples

test_get_normal_stats_naive(self)[source]

Test if the correct normal stats are generated from uniform samples with normal weights

test_remove_outliers_from_lognormal(self)[source]

Test if extreme outliers 3-STD away from the mean are removed

test_combine_lenses(self)[source]

Test execution of HierArc combination of lenses. Results aren’t validated here, only in HierArc.