From e6f1b3966ebf61c6fe38da10a529cd30990c1aab Mon Sep 17 00:00:00 2001 From: Kartik Subbarao Date: Tue, 6 Feb 2024 14:39:39 -0500 Subject: [PATCH] Update reports.py Fix how the active variable is set, closes #6 --- quantstats_lumi/reports.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quantstats_lumi/reports.py b/quantstats_lumi/reports.py index f5f116c..31e8d65 100644 --- a/quantstats_lumi/reports.py +++ b/quantstats_lumi/reports.py @@ -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( @@ -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) @@ -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)