From e75001bb05ce8dc0f77e7b46cc41bd5316f546fe Mon Sep 17 00:00:00 2001 From: till-m Date: Mon, 28 Nov 2022 10:50:12 +0100 Subject: [PATCH 1/3] Use colorama to correct colors in PS --- bayes_opt/util.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bayes_opt/util.py b/bayes_opt/util.py index f649d2010..3cfe75572 100644 --- a/bayes_opt/util.py +++ b/bayes_opt/util.py @@ -2,6 +2,7 @@ import numpy as np from scipy.stats import norm from scipy.optimize import minimize +from colorama import just_fix_windows_console def acq_max(ac, gp, y_max, bounds, random_state, constraint=None, n_warmup=10000, n_iter=10): @@ -295,3 +296,6 @@ def underline(cls, s): def yellow(cls, s): """Wrap text in yellow.""" return cls._wrap_colour(s, cls.YELLOW) + + +just_fix_windows_console() From 7118040f1583d4479107b678c2fb156a8ca858e3 Mon Sep 17 00:00:00 2001 From: till-m Date: Mon, 28 Nov 2022 10:54:05 +0100 Subject: [PATCH 2/3] Trigger Actions From 9a6a2d5cabf59ae6725dc2ca1f7593735f573256 Mon Sep 17 00:00:00 2001 From: till-m Date: Mon, 28 Nov 2022 10:56:16 +0100 Subject: [PATCH 3/3] Update dependencies --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 718bb9ca7..b98a7f42c 100644 --- a/setup.py +++ b/setup.py @@ -14,6 +14,7 @@ "numpy >= 1.9.0", "scipy >= 1.0.0", "scikit-learn >= 0.18.0", + "colorama" ], classifiers=[ 'License :: OSI Approved :: MIT License',