Skip to content
Snippets Groups Projects
Commit 0d319a1d authored by kohlhaasrebecca's avatar kohlhaasrebecca
Browse files

Removed unneeded tests

Two tests for the ExpDesign became unneded due to change in the input parameters of ExpDesigns.generate_ED()
parent b0bc16c4
No related branches found
No related tags found
No related merge requests found
Pipeline #45789 passed
No preview for this file type
File added
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment