-
Notifications
You must be signed in to change notification settings - Fork 208
[BUG?] Complex selections with OR gate #804
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
Comments
I have noticed that when I pass Help is much appreciated! |
I have solved it by specifying again the model directly in the selection:
But I am still confused of why the |
Issue #804. Model selection was only being processed at the top level when the selection was dispatched to the models in the viewer. Now process in the model as well to properly handle model selection in nested statements like or/and. This requires giving models access to their viewer and so I've put in some minor api breakage where model methods no longer need to be passed a viewer.
The reason this wasn't working is model selections were only parsed at the top level, as they are used to dispatch the selection to the respective models. I've now add model checking within the selection inside the model so they work recursively (e.g., inside an or statement). |
Great, thanks a lot! |
In 2.5 |
Hi, I am dealing with multiple models and complex selections and I think something is not working as expected, possibly due to the way I build my selections.
First a general question about selections:
I have generated many selections like so, and they all seemed to work so far, selecting the correct residues in the right chains in the specific model.
Now, I am playing with
AND
andOR
gates to do more detailed selections and I just wondered: is this first selection the same as this second one?The issue I have is that when I apply the model to the union of those selections I generated in the loop like so:
The style is also applied to another model, which is unexpected, as in each one of the selections in
ligandSitesHash[activeModel][ligNam]
I specify themodel: activeModel
.This is the array containing the different selections:
and somehow the style is applied to another model (not 96) too.
Thanks a lot!
The text was updated successfully, but these errors were encountered: