-
Notifications
You must be signed in to change notification settings - Fork 42
Sync structure selection between jupyter and viewers #485
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
Conversation
sofiia-chorna
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from my tests, it is working fine, streamlit is all good as well
sofiia-chorna
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some small things i noticed:
- there is an error in the console for the Chemical Shielding example (but it seems to be working fine anyways)
dataset.json
- when we set an id outside the valid range, the info panel is updated with this number. we can live with it but perhaps it is not perfect
…ctiveAtoms existence
sofiia-chorna
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works fine, streamlit is OK as well, thanks!
…decoupling from options object
…revent background loops
| const activeAtoms = this.visualizer.indexer.activeAtoms(structure); | ||
|
|
||
| if (activeAtoms && activeAtoms.length > 0) { | ||
| if (binarySearch(activeAtoms, atom) === -1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this a binary search, instead of some standard search on an array?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is how all this was already implemented (binarysearch was introduced 4 years ago ^_^) I assumed it was because of the sparsity of the environment array.
Uh oh!
There was an error while loading. Please reload this page.