From d83954fdcb7234b2c2d35c9631321c31045585e3 Mon Sep 17 00:00:00 2001 From: DaGuT Date: Fri, 15 Apr 2022 15:49:15 +0300 Subject: [PATCH 1/3] version update --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 510ec4a..69da278 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setuptools.setup( name='backtrader_plotting', - version='2.0.0', + version='2.0.1', description='Plotting package for Backtrader (Bokeh)', From ec9d2564692ba514acda6c50e36efa157cb7f3e4 Mon Sep 17 00:00:00 2001 From: DaGuT Date: Fri, 15 Apr 2022 15:50:01 +0300 Subject: [PATCH 2/3] updated changelog with new fix --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 314e5c4..2abb71b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.0.1] - 2022.04.15 +### Fixes +- Fixed paramval2str type error for non-str lists + ## [2.0.0] - 2021.06.14 ### Added - Live trading support (needs custom `backtrader`, see `README.md` for details) From 17006cb4820f1cbf4daa5f2df34501cca05db90e Mon Sep 17 00:00:00 2001 From: DaGuT Date: Fri, 15 Apr 2022 15:55:16 +0300 Subject: [PATCH 3/3] Fixed paramval2str type error for non-str lists --- CHANGELOG.md | 5 +++++ backtrader_plotting/utils.py | 2 +- setup.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 314e5c4..25a81bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.0.1] - 2022.04.15 +### Fixes +- Fixed paramval2str type error for non-str lists + + ## [2.0.0] - 2021.06.14 ### Added - Live trading support (needs custom `backtrader`, see `README.md` for details) diff --git a/backtrader_plotting/utils.py b/backtrader_plotting/utils.py index 5bb5baf..7c733d8 100644 --- a/backtrader_plotting/utils.py +++ b/backtrader_plotting/utils.py @@ -24,7 +24,7 @@ def paramval2str(name, value): elif isinstance(value, float): return f"{value:.2f}" elif isinstance(value, (list,tuple)): - return ','.join(value) + return ','.join(map(lambda x: paramval2str(name, x), value)) elif isinstance(value, type): return value.__name__ else: diff --git a/setup.py b/setup.py index 510ec4a..69da278 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setuptools.setup( name='backtrader_plotting', - version='2.0.0', + version='2.0.1', description='Plotting package for Backtrader (Bokeh)',