From 567b0d458364777eb9d983611c559179fe870447 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 27 Jun 2024 18:45:59 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks --- .../test_lens_distribution.py | 61 ++++++++++--------- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/test/test_Sampling/test_Distributions/test_lens_distribution.py b/test/test_Sampling/test_Distributions/test_lens_distribution.py index f1442ca..bb9513a 100644 --- a/test/test_Sampling/test_Distributions/test_lens_distribution.py +++ b/test/test_Sampling/test_Distributions/test_lens_distribution.py @@ -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)