Skip to content
This repository was archived by the owner on Mar 24, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion backtrader_plotting/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
setuptools.setup(
name='backtrader_plotting',

version='2.0.0',
version='2.0.1',

description='Plotting package for Backtrader (Bokeh)',

Expand Down