Skip to content

Commit e935c33

Browse files
v0.0.11
1 parent 7a1d847 commit e935c33

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

notebooks/02_spot_multidim.ipynb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,18 @@
100100
"execution_count": 3,
101101
"metadata": {},
102102
"outputs": [
103+
{
104+
"name": "stdout",
105+
"output_type": "stream",
106+
"text": [
107+
"spotPython tuning: [##########] 100.00% Done...\n",
108+
"\r"
109+
]
110+
},
103111
{
104112
"data": {
105113
"text/plain": [
106-
"<spotPython.spot.spot.Spot at 0x29b1bf9a0>"
114+
"<spotPython.spot.spot.Spot at 0x1678bb9d0>"
107115
]
108116
},
109117
"execution_count": 3,
@@ -116,6 +124,7 @@
116124
" lower = -1.0*np.ones(3),\n",
117125
" upper = np.ones(3),\n",
118126
" var_name=[\"Pressure\", \"Temp\", \"Lambda\"],\n",
127+
" show_progress=True,\n",
119128
" surrogate_control={\"n_theta\": 3})\n",
120129
"\n",
121130
"spot_3.run()"

src/spotPython/spot/spot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,9 @@ def run(self):
361361
# progress bar:
362362
if self.show_progress:
363363
if isfinite(self.fun_evals):
364-
progress_bar(self.counter / self.fun_evals)
364+
progress_bar(progress=self.counter / self.fun_evals)
365365
else:
366-
progress_bar((time.time() - timeout_start) / (self.max_time * 60))
366+
progress_bar(progress=(time.time() - timeout_start) / (self.max_time * 60))
367367
return self
368368

369369
def generate_design(self, size, repeats, lower, upper):

0 commit comments

Comments
 (0)