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

Add len and iter methods to archives #151

Merged
merged 7 commits into from Jul 4, 2021
Merged

Add len and iter methods to archives #151

merged 7 commits into from Jul 4, 2021

Conversation

btjanaka
Copy link
Member

@btjanaka btjanaka commented Jul 4, 2021

Description

The iterator goes through all elites in the archive. Given this, it makes sense for len to be the number of elites in the archive. Resolves #124

Changelog Description

Add len and iter methods to archives (#151)

TODO

  • Add and test iter method
  • Add and test len method
  • Resolve issues with len in SlidingBoundariesArchive test
  • Modify docs to show special methods

Questions

Status

  • I have read the guidelines in
    CONTRIBUTING.md.
  • I have formatted my code using yapf
  • I have tested my code by running pytest
  • I have linted my code with pylint
  • This PR is ready to go

@btjanaka btjanaka merged commit 9e9f1c0 into master Jul 4, 2021
@btjanaka btjanaka deleted the iter branch July 4, 2021 11:50
@btjanaka btjanaka added this to the v0.4.0 milestone Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Make archive iterable
1 participant