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 a list_annotations() method #2562

Merged
merged 2 commits into from
May 1, 2020
Merged

Conversation

zingale
Copy link
Member

@zingale zingale commented Apr 26, 2020

PR Summary

The annotate_clear() method takes an optional index of the annotation to remove, but there
is not high-level method to see the indices of the currently applied annotations. This adds a list_annotations() method to allow us to see what annotations are currently applied.

This reissues #2498.

PR Checklist

  • Code passes flake8 checker
  • New features are documented, with docstrings and narrative docs
  • Adds a test for any bugs fixed. Adds tests for new features.

@zingale
Copy link
Member Author

zingale commented Apr 26, 2020

@munkm I renamed this function as you suggested.

@munkm munkm added the new feature Something fun and new! label Apr 27, 2020
Copy link
Member

@munkm munkm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating the method name! This looks great.

Continuing our conversation from the previous PR, I've opened an issue #2564 to propose changing the name of annotate_clear to clear_annotations like you suggested in the previous PR.

@munkm munkm merged commit d99f816 into yt-project:yt-4.0 May 1, 2020
@munkm munkm mentioned this pull request May 5, 2020
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Something fun and new!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants