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 an IMP.atom.get_leaves(hier) which is aware of representations #947

Open
cgreenberg opened this issue May 8, 2016 · 0 comments
Open

Comments

@cgreenberg
Copy link
Contributor

cgreenberg commented May 8, 2016

Currently the only way to get ALL leaves of all representations is a bit clunky, you have to use selection:

selB = IMP.atom.Selection(hsel,resolution=IMP.atom.ALL_RESOLUTIONS,
                                  representation_type=IMP.atom.BALLS)
selD = IMP.atom.Selection(hsel,resolution=IMP.atom.ALL_RESOLUTIONS,
                                  representation_type=IMP.atom.DENSITIES)
return list(set(selB.get_selected_particles() + selD.get_selected_particles()))

Would be nice to have a quick function to do this.

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

No branches or pull requests

1 participant