Skip to content

Commit f1f34c4

Browse files
committed
BUG Add parantheses to fix if statement around bootstrap.
1 parent dad47ff commit f1f34c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyfolio/tears.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ def create_returns_tear_sheet(returns, positions=None,
611611
live_start_date=live_start_date,
612612
ax=ax_return_quantiles)
613613

614-
if bootstrap and benchmark_rets is not None:
614+
if bootstrap and (benchmark_rets is not None):
615615
ax_bootstrap = plt.subplot(gs[i, :])
616616
plotting.plot_perf_stats(returns, benchmark_rets,
617617
ax=ax_bootstrap)

0 commit comments

Comments
 (0)