You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to lines like this in reports.py: active = kwargs.get("active_returns", "False")
The active variable is incorrectly set to "False" instead of False.
This produces the wrong logic with a line like this in wrappers.py: if active and benchmark is not None:
The fix is to change these lines in reports.py to: active = kwargs.get("active_returns", False)
The text was updated successfully, but these errors were encountered:
[copied from https://github.com/ranaroussi/quantstats/issues/278]
Due to lines like this in reports.py:
active = kwargs.get("active_returns", "False")
The active variable is incorrectly set to
"False"
instead ofFalse
.This produces the wrong logic with a line like this in wrappers.py:
if active and benchmark is not None:
The fix is to change these lines in reports.py to:
active = kwargs.get("active_returns", False)
The text was updated successfully, but these errors were encountered: