-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More benchmark fixes #2762
More benchmark fixes #2762
Conversation
tests/test_examples.py
Outdated
if benchmark_returns is not None: | ||
expected_perf = self.expected_perf[example_name] | ||
else: | ||
# With no benchmark, expect zero results for these metrics: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we precompute this in the init like self.no_benchmark_expected_perf
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. Done.
@@ -513,7 +515,8 @@ def resolve(self, asset_finder, start_date, end_date): | |||
benchmark_returns = None | |||
except SymbolNotFound: | |||
raise _RunAlgoError( | |||
"Symbol %s as a benchmark not found in this bundle." | |||
"Symbol %r as a benchmark not found in this bundle." | |||
% self.benchmark_symbol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
lgtm |
90d4fb7
to
94841eb
Compare
Given this is such a common-use case I would suggest this probably warrants a v1.41 release? It's certainly been a common topic from our user base. |
👍 I was thinking the same thing. |
Fixes #2761 and adds the docstring missing in #2627 (comment).