-
Notifications
You must be signed in to change notification settings - Fork 268
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
Add a long-run strategy to the filtering test #1359
Conversation
Currently `test_boolean_filtering` only uses strategies as given by the `strategy_list` hypothesis strategy. This by default only picks short run time strategies so we are not ensuring that the long run filter works.
* 'master' of github.com:caddycarine/Axelrod: Update citations.md
Hello @caddycarine 👋 Thank you for the The Note that you can see the list of the long run strategies using the following code: >>> import axelrod as axl
>>> filterset = {
... "long_run_time": True
... }
>>> strategies = axl.filtered_strategies(filterset)
>>> strategies which is based on this page of the tutorial: https://axelrod.readthedocs.io/en/stable/tutorials/advanced/classification_of_strategies.html?highlight=classifier 😄 hope this helps. |
I think that's wanted behaviour here @Nikoleta-v3, this test is checking that if you pass a list of strategies, some of which are long run time then the filter will pick the long run time ones out. Whether or not cooperator is long run time is not terribly important, it just needed an example with at least 1 long run time strategy. Am I missing something? |
@caddycarine the tests are currently failing but this is not anything you've done (probably a dependency that's been upgraded upstream). Could you modify the
could you change that to:
Once you've done that, commit the change and push (like we did together), this will update things here. |
Ah of course 🤦♀️ Thank you for the clarification @drvinceknight |
This also happened on #1288, it may be a |
Last PR failed checks, probably due to an int vs float issue in the dependencies.
Thanks for making that change @caddycarine, the tests have failed for another reason but this is not your fault. Can you modify the
becomes:
Once you've done that commit and push as before :) |
Specified isort version dependency to facilitate checks during commit.
Currently
test_boolean_filtering
only uses strategies as given by thestrategy_list
hypothesis strategy. This by default only picks short run time strategies so we are not ensuring that the long run filter works.