From 8351ae9389dd09a89f8f94b9087c29b7b44f0a6b Mon Sep 17 00:00:00 2001 From: Nuno Fachada Date: Mon, 12 Jun 2023 20:38:39 +0100 Subject: [PATCH] Test opt. direct parameters with data that makes sense in context --- tests/test_main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_main.py b/tests/test_main.py index a8dac4e..111a05f 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -191,12 +191,12 @@ def test_clugen_optional_direct( clusep_fn, allow_empty, ): - """Test the optional parameters of the clugen() function.""" + """Test optional parameters of clugen() with direct input.""" # Direct parameters (instead of functions) csz_direct = prng.integers(1, 100, num_clusters) cctr_direct = prng.normal(size=(num_clusters, ndims)) - llen_direct = prng.normal(size=num_clusters) - lang_direct = prng.random(num_clusters) + llen_direct = 20 * prng.random(num_clusters) + lang_direct = pi * prng.random(num_clusters) - pi / 2 # Valid arguments tpts = sum(csz_direct)