Skip to content

Commit

Permalink
fix: no active return dump
Browse files Browse the repository at this point in the history
  • Loading branch information
matteoettam09 committed Sep 5, 2023
1 parent 882db88 commit 2f3cf07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backtest/export/quants.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@ def finalize(self) -> None:

if self.html_output_file is not None:
if self.auto_override or not os.path.exists(self.html_output_file):
quantstats.reports.html(returns, benchmark=benchmark, output=self.html_output_file)
quantstats.reports.html(returns, benchmark=benchmark, output=self.html_output_file, active_returns=False)
else:
print(f"[warning] {self.html_output_file} already exists", file=sys.stderr)

0 comments on commit 2f3cf07

Please sign in to comment.