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

Adding repr methods for particle unions #2502

Merged
merged 2 commits into from
Apr 20, 2020

Conversation

matthewturk
Copy link
Member

This fixes #2501 . It adds __repr__ functions for Unions, including particle unions. So for example:

>>> ds.particle_unions
{'all': Particle Union: 'all' composed of: ['PartType0', 'PartType4', 'PartType1'],
 'nbody': Particle Union: 'nbody' composed of: ['PartType4', 'PartType1']}

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.

This looks great! Thank you!

@matthewturk matthewturk added the enhancement Making something better label Apr 17, 2020
@munkm munkm merged commit 7e4d84a into yt-project:yt-4.0 Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Making something better
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants