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 preview argument #63

Merged
merged 4 commits into from
Jul 14, 2023
Merged

Add preview argument #63

merged 4 commits into from
Jul 14, 2023

Conversation

LewisAJones
Copy link
Collaborator

This PR adds a preview argument to get_phylopic.

Currently, I've implemented this using add_phylopic_base. I don't see why we need to repeat a bunch of code for handling different formats when we already have it here. What do you think?

Closes #59.

@LewisAJones LewisAJones added this to the 1.2.0 milestone Jun 29, 2023
@LewisAJones LewisAJones self-assigned this Jun 29, 2023
@LewisAJones LewisAJones linked an issue Jun 29, 2023 that may be closed by this pull request
Copy link
Collaborator

@willgearty willgearty left a comment

Choose a reason for hiding this comment

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

Thanks @LewisAJones! I noticed this approach didn't work if you didn't have anything plotted already, so I've modified the code slightly to work in that case as well. I could actually envision this code I added also being a standalone function for users to preview individual phylopics, but I'm not sure if users would be doing that outside of this function, so we can just leave it here for now. Give it a glance and merge if you are happy with it!

@LewisAJones
Copy link
Collaborator Author

LewisAJones commented Jul 14, 2023

Looks good to me! Thanks for the fix! I don't see why we need the extra standalone preview function as this would be presumably be using get_phylopic anyway?

@LewisAJones LewisAJones merged commit af64c2d into main Jul 14, 2023
8 checks passed
@willgearty willgearty deleted the preview-arg branch July 14, 2023 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Preview option for get_phylopic
2 participants