diff --git a/.coverage b/.coverage index 7bd62455cae2ec79af9cbc60f552afe43fca17d4..d41967f8db2681943faa50556a069d154d6d34ed 100644 Binary files a/.coverage and b/.coverage differ diff --git a/.coverage.DESKTOP-ATMEKSV.22308.XGdCCwAx b/.coverage.DESKTOP-ATMEKSV.22308.XGdCCwAx new file mode 100644 index 0000000000000000000000000000000000000000..e1f7e6f75f5aa9a7a33884193b67b7cc22082200 Binary files /dev/null and b/.coverage.DESKTOP-ATMEKSV.22308.XGdCCwAx differ diff --git a/tests/test_ExpDesign.py b/tests/test_ExpDesign.py index 0a1191799ca880dbdf28eb598a68120507bff1b2..3cda5da6da021d1721a5073ccb8a4244352b67cf 100644 --- a/tests/test_ExpDesign.py +++ b/tests/test_ExpDesign.py @@ -135,19 +135,6 @@ def test_random_sampler() -> None: exp = ExpDesigns(inp) exp.random_sampler(4) -def test_random_sampler_largedatanoJDist() -> None: - """ - Sample randomly, init_param_space implicitly, more samples wanted than given, no JDist available - """ - x = np.random.uniform(0,1,1000) - inp = Input() - inp.add_marginals() - inp.Marginals[0].input_data = x - exp = ExpDesigns(inp) - with pytest.raises(AttributeError) as excinfo: - exp.random_sampler(100000) - assert str(excinfo.value) == 'Sampling cannot proceed, build ExpDesign with max_deg != 0 to create JDist!' - def test_random_sampler_largedataJDist0() -> None: """ Sample randomly, init_param_space implicitly, more samples wanted than given, @@ -350,19 +337,6 @@ def test_generate_ED_randomtrafo() -> None: exp = ExpDesigns(inp, sampling_method = 'random') exp.generate_ED(4) -def test_generate_ED_latin_nomaxdeg() -> None: - """ - latin-hypercube-defined ED without max_pce_deg - """ - x = np.random.uniform(0,1,1000) - inp = Input() - inp.add_marginals() - inp.Marginals[0].input_data = x - exp = ExpDesigns(inp, sampling_method = 'latin-hypercube') - with pytest.raises(AttributeError) as excinfo: - exp.generate_ED(4) - assert str(excinfo.value) == 'Please set `max_pce_deg` for the experimental design!' - def test_generate_ED_latin() -> None: """ latin-hypercube-defined ED @@ -372,7 +346,7 @@ def test_generate_ED_latin() -> None: inp.add_marginals() inp.Marginals[0].input_data = x exp = ExpDesigns(inp, sampling_method = 'latin-hypercube') - exp.generate_ED(4,1) + exp.generate_ED(4) #%% Test ExpDesign.read_from_file