Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jun 27, 2024
1 parent 3688ea9 commit 567b0d4
Showing 1 changed file with 32 additions and 29 deletions.
61 changes: 32 additions & 29 deletions test/test_Sampling/test_Distributions/test_lens_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,39 @@ class TestLensDistribution(object):

def setup_method(self):
self.kwargs_sampling = {
"lambda_mst_sampling": True,
"lambda_mst_distribution": "GAUSSIAN",
"gamma_in_sampling": True,
"gamma_in_distribution": "GAUSSIAN",
"log_m2l_sampling": True,
"log_m2l_distribution": "GAUSSIAN",
"alpha_lambda_sampling": True,
"beta_lambda_sampling": True,
"alpha_gamma_in_sampling": True,
"alpha_log_m2l_sampling": True,
"log_scatter": False, # change for different tests
"mst_ifu": False, # change for different tests
"lambda_scaling_property": 0.1,
"lambda_scaling_property_beta": 0.2,
"kwargs_min": {"gamma_in": 1, "log_m2l": 0},
"kwargs_max": {"gamma_in": 2, "log_m2l": 1}}
"lambda_mst_sampling": True,
"lambda_mst_distribution": "GAUSSIAN",
"gamma_in_sampling": True,
"gamma_in_distribution": "GAUSSIAN",
"log_m2l_sampling": True,
"log_m2l_distribution": "GAUSSIAN",
"alpha_lambda_sampling": True,
"beta_lambda_sampling": True,
"alpha_gamma_in_sampling": True,
"alpha_log_m2l_sampling": True,
"log_scatter": False, # change for different tests
"mst_ifu": False, # change for different tests
"lambda_scaling_property": 0.1,
"lambda_scaling_property_beta": 0.2,
"kwargs_min": {"gamma_in": 1, "log_m2l": 0},
"kwargs_max": {"gamma_in": 2, "log_m2l": 1},
}

self.kwargs_lens = {"lambda_mst": 1.1,
"lambda_mst_sigma": 0.1,
"gamma_ppn": 0.9,
"lambda_ifu": 0.5,
"lambda_ifu_sigma": 0.2,
"alpha_lambda": -0.2,
"beta_lambda": 0.3,
"gamma_in": 1.5,
"gamma_in_sigma": 1,
"alpha_gamma_in": 0.2,
"log_m2l": 0.6,
"log_m2l_sigma": 1,
"alpha_log_m2l": -0.1}
self.kwargs_lens = {
"lambda_mst": 1.1,
"lambda_mst_sigma": 0.1,
"gamma_ppn": 0.9,
"lambda_ifu": 0.5,
"lambda_ifu_sigma": 0.2,
"alpha_lambda": -0.2,
"beta_lambda": 0.3,
"gamma_in": 1.5,
"gamma_in_sigma": 1,
"alpha_gamma_in": 0.2,
"log_m2l": 0.6,
"log_m2l_sigma": 1,
"alpha_log_m2l": -0.1,
}

def test_draw_lens(self):
lens_dist = LensDistribution(**self.kwargs_sampling)
Expand Down

0 comments on commit 567b0d4

Please sign in to comment.