Skip to content

Commit 894b753

Browse files
committed
BUG sector_mappings was not passed from full_tear_sheet to position_tear_sheet.
1 parent 376b74c commit 894b753

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pyfolio/tears.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ def create_full_tear_sheet(returns, positions=None, transactions=None,
147147
live_start_date=live_start_date,
148148
cone_std=cone_std,
149149
benchmark_rets=benchmark_rets,
150-
set_context=set_context
150+
set_context=set_context,
151+
sector_mappings=sector_mappings
151152
)
152153

153154
create_interesting_times_tear_sheet(returns,
@@ -366,7 +367,7 @@ def create_position_tear_sheet(returns, positions, gross_lev=None,
366367
If True, returns the figure that was plotted on.
367368
set_context : boolean, optional
368369
If True, set default plotting style context.
369-
sector_mapping: dict or pd.Series, optional
370+
sector_mappings : dict or pd.Series, optional
370371
Security identifier to sector mapping.
371372
Security ids as keys, sectors as values.
372373
"""

0 commit comments

Comments
 (0)