From b25ad68c4482d7e4588986e179d14cd318f4ef16 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 2 Jul 2021 20:52:25 +0200 Subject: [PATCH] Fix np.bool_ not outputting correctly --- freqtrade/optimize/hyperopt_tools.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/freqtrade/optimize/hyperopt_tools.py b/freqtrade/optimize/hyperopt_tools.py index 006bc4ce0..90976d34e 100755 --- a/freqtrade/optimize/hyperopt_tools.py +++ b/freqtrade/optimize/hyperopt_tools.py @@ -25,6 +25,9 @@ NON_OPT_PARAM_APPENDIX = " # value loaded from strategy" def hyperopt_serializer(x): if isinstance(x, np.integer): return int(x) + if isinstance(x, np.bool_): + return bool(x) + return str(x)