Skip to content
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

[FEATURE REQUEST] Add filter method to archives #147

Open
btjanaka opened this issue Jul 4, 2021 · 0 comments
Open

[FEATURE REQUEST] Add filter method to archives #147

btjanaka opened this issue Jul 4, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@btjanaka
Copy link
Member

btjanaka commented Jul 4, 2021

Description

We can add a filter method that makes it easy to iterate over certain entries in the archive. It is unclear whether this method should return a new archive or something else. Either way, it would be possible to iterate over the result:

for elite in archive.filter(lambda elite: elite.obj > 200):
  ...
@btjanaka btjanaka added the enhancement New feature or request label Jul 4, 2021
@btjanaka btjanaka added this to the v0.5.0 milestone Jul 4, 2021
@btjanaka btjanaka modified the milestones: v0.5.0, v0.6.0 Feb 23, 2023
@btjanaka btjanaka removed this from the v0.6.0 milestone Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant