Skip to content

Commit b0ae0fb

Browse files
0.18.2
1 parent 52305ac commit b0ae0fb

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

RELEASE_NOTES.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
spotpython 0.18.1
1+
spotpython 0.18.2:
2+
3+
- spot.py:
4+
Class Spot has new attribute "verbosity. Can be set via fun_control["verbosity"].
5+
6+
7+
spotpython 0.18.1:
28

39
- nn_linear_regression.py:
410
train steo uses log as follows:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[project]
99
name = "spotpython"
10-
version = "0.18.1"
10+
version = "0.18.2"
1111
authors = [
1212
{ name="T. Bartz-Beielstein", email="tbb@bartzundbartz.de" }
1313
]

src/spotpython/spot/spot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ def __init__(
262262
self.tkagg = self.fun_control["tkagg"]
263263
if self.tkagg:
264264
matplotlib.use("TkAgg")
265+
self.verbosity = self.fun_control["verbosity"]
265266

266267
# Tensorboard:
267268
self.init_spot_writer()
@@ -1274,7 +1275,6 @@ def update_stats(self) -> None:
12741275
self.min_mean_y = self.mean_y[argmin(self.mean_y)]
12751276

12761277
def update_writer(self) -> None:
1277-
print("In update_writer().")
12781278
if hasattr(self, "spot_writer") and self.spot_writer is not None:
12791279
# get the last y value:
12801280
y_last = self.y[-1].copy()
@@ -1312,7 +1312,8 @@ def update_writer(self) -> None:
13121312
# self.spot_writer.add_hparams(config, {"spot_y": y_last}, run_name=self.spot_tensorboard_path)
13131313
self.spot_writer.add_hparams(config, {"hp_metric": y_last})
13141314
self.spot_writer.flush()
1315-
print("update_writer(): Done.")
1315+
if self.verbosity > 0:
1316+
print("update_writer(): Done.")
13161317
else:
13171318
print("No spot_writer available.")
13181319

0 commit comments

Comments
 (0)