-
Notifications
You must be signed in to change notification settings - Fork 16
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
Implement structure view toggle #1074
Implement structure view toggle #1074
Conversation
Hi @edan-bainglass , thanks for the work, but I don't fully understand the PR's purpose from the description. Could you add a more detailed description of the functionality? |
Is it clearer now? |
I believe we should address issue #530, as switching between images may not clearly reflect changes in the structure, or at least make those changes easy to distinguish. |
agree, it would be good to use animation of trajectory. Both nglview and weas-wdiget support animation. |
Sounds like a plan for the next release (future PR) 👍 |
ed961bc
to
a35c232
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1074 +/- ##
==========================================
+ Coverage 69.11% 69.66% +0.55%
==========================================
Files 113 113
Lines 6764 6805 +41
==========================================
+ Hits 4675 4741 +66
+ Misses 2089 2064 -25
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@AndresOrtegaGuerrero can we get this approved? 🙏 |
I would prefer focusing on resolving #530, I believe it is not intuitive for the user to observe any changes with the current approach. |
This toggle feature was a request by Giovanni and Carlo. It is self-contained and does not take away from our ability to address #530 in the near future. Also, the text for the guide PR depends on this PR. |
Sure, i would suggest you tag Carlo or Giovanni for some input on the visuals, from my side the current is fine. |
a35c232
to
1aba62b
Compare
@cpignedoli @giovannipizzi can I get a presentation review? Is this what you had in mind? structure_view.mp4 |
Very good! |
This PR implements a toggleable structure view allowing users to toggle between the initial and relaxed structures in a single panel. Toggle controls are sensitive to the relaxation state (not relaxed, relaxing, relaxed):
Clicking the toggle button will update the title, toggle description, and structure view, info, and coordinates table.