Skip to content

Commit 12a2414

Browse files
0.30.8
1 parent 1d4c167 commit 12a2414

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

src/spotpython/spot/spot.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,6 @@ def __init__(
232232
# Additional self attributes updates:
233233
self._set_additional_attributes()
234234

235-
# Bounds are internal, because they are functions of self.lower and self.upper
236-
# and used by the optimizer:
237-
de_bounds = []
238-
for j in range(self.lower.size):
239-
de_bounds.append([self.lower[j], self.upper[j]])
240235
self.set_de_bounds()
241236

242237
self._design_setup(design)
@@ -332,7 +327,8 @@ def _set_bounds_and_dim(self) -> None:
332327

333328
def _set_var_type(self) -> None:
334329
"""
335-
Set the variable types. If the variable types are not specified,
330+
Set the variable types based on the fun_control dictionary.
331+
If the variable types are not specified,
336332
all variable types are forced to 'num'.
337333
"""
338334
self.var_type = self.fun_control["var_type"]
@@ -345,7 +341,8 @@ def _set_var_type(self) -> None:
345341

346342
def _set_var_name(self) -> None:
347343
"""
348-
Set the variable names. If the variable names are not specified,
344+
Set the variable names based on the fun_control dictionary.
345+
If the variable names are not specified,
349346
all variable names are set to x0, x1, x2, ...
350347
"""
351348
self.var_name = self.fun_control["var_name"]

0 commit comments

Comments
 (0)