Only calculate additional indicators if the space is selected

This commit is contained in:
Matthias
2021-05-01 16:36:53 +02:00
parent e381df9098
commit 555262b6e1
3 changed files with 8 additions and 5 deletions

View File

@@ -636,7 +636,7 @@ def test_hyperopt_parameters():
assert len(list(intpar.range)) == 1
# Range contains ONLY the default / value.
assert list(intpar.range) == [intpar.value]
intpar.hyperopt = True
intpar.in_space = True
assert len(list(intpar.range)) == 6
assert list(intpar.range) == [0, 1, 2, 3, 4, 5]