Skip to content

Commit

Permalink
Update reports.py
Browse files Browse the repository at this point in the history
Fix how the active variable is set, closes #6
  • Loading branch information
kartiksubbarao authored Feb 6, 2024
1 parent 345c527 commit e6f1b39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quantstats_lumi/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def html(
)
tpl = tpl.replace("{{dd_info}}", dd_html_table)

active = kwargs.get("active_returns", "False")
active = kwargs.get("active_returns", False)
# plots
figfile = _utils._file_stream()
_plots.returns(
Expand Down Expand Up @@ -530,7 +530,7 @@ def full(
if benchmark is not None:
benchmark_title = kwargs.get("benchmark_title", "Benchmark")
strategy_title = kwargs.get("strategy_title", "Strategy")
active = kwargs.get("active_returns", "False")
active = kwargs.get("active_returns", False)

if (
isinstance(returns, _pd.DataFrame)
Expand Down Expand Up @@ -684,7 +684,7 @@ def basic(
if benchmark is not None:
benchmark_title = kwargs.get("benchmark_title", "Benchmark")
strategy_title = kwargs.get("strategy_title", "Strategy")
active = kwargs.get("active_returns", "False")
active = kwargs.get("active_returns", False)

if (
isinstance(returns, _pd.DataFrame)
Expand Down

0 comments on commit e6f1b39

Please sign in to comment.