You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then I have my protein in the principal axis reference frame. Note that it would work if align to different principal axes
Actual behaviour
All values in the position array are set to NaN
Why does this happen
The problem for this specific case is that mda.lib.transformations.rotaxis will return NaN if both vectors are the same. The solution is to catch this before and return a fixed axis like [1, 0, 0].
The text was updated successfully, but these errors were encountered:
Expected behaviour
Align with first PA should be possible.
Then I have my protein in the principal axis reference frame. Note that it would work if align to different principal axes
Actual behaviour
All values in the position array are set to
NaN
Why does this happen
The problem for this specific case is that
mda.lib.transformations.rotaxis
will return NaN if both vectors are the same. The solution is to catch this before and return a fixed axis like [1, 0, 0].The text was updated successfully, but these errors were encountered: