-
Notifications
You must be signed in to change notification settings - Fork 189
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
Visualization: dihedrals connectivity #2677
Conversation
Codecov Report
@@ Coverage Diff @@
## python #2677 +/- ##
======================================
Coverage 80% 80%
======================================
Files 508 508
Lines 27055 27055
======================================
Hits 21843 21843
Misses 5212 5212 Continue to review full report at Codecov.
|
@fweik, why did you assign me? |
Because somebody has to manage this? |
On Tue, Apr 09, 2019 at 05:43:08AM -0700, Florian Weik wrote:
Because somebody has to manage this?
OK. I understood that differently. Manage, I can do.
|
Thanks for the MWE, will test it. |
Update: the |
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.
Tested the openGl part, no more bond 'spiderweb' there.
MayaVi code cannot be tested on Ubuntu 18.04 at this moment (espressomd#2704).
@RudolfWeeber @KonradBreitsprecher I've removed the MayaVi fix since we cannot know if it works. |
Try Ubuntu 16.04 in a virtual machine. That has working mayavi packages. |
Tried Ubuntu 16.04 in a VM, mayavi still segfaults. Used mayavi 4.4.3 (from apt), then 4.5.0 (from pip), with traits 4.5.0, then 4.6.0. |
The version from Apt used to work about a year ago. Does the minimal example from #2704 (comment) also segfault? |
By the way, the Mac version does not segfault. |
I've used your MWE to test multiple versions of mayavi. Where can I find our VM image for Mac? |
@jngrad, could you please re-introduce the Mayavi fix and test it on someone's Mac at the ICP (@KaiSzuttor, @mkuron). |
Visualizers currently represent proper dihedral bonds (A-B-C-D connectivity, aka torsion angle) as improper dihedral bonds (A-B(-C)-D connectivity, aka out-of-plane angle), causing some confusion when setting up linear polymers. This PR introduces a conditional statement to correctly treat bond connectivity in dihedral interactions.
MWE: re-use
/samples/visualization_bonded.py
, withbox_l = 200
,n_part = 20
, then addright before the minimization step. Without this PR, the polymer looks like a spiderweb. With this PR, the polymer looks like beads on a string, and the magenta segments (bonds) perfectly overlap with the orange segments (dihedrals). I've tested it in OpenGL but not in MayaVi (cannot run the mayavi module in my environment because of an issue with the wx module, it has nothing to do with espresso).
@KonradBreitsprecher could you please run the MWE in both visualizers as part of the code review?