Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tbgl
tools
mrdna
Commits
5e2b9f05
Commit
5e2b9f05
authored
Feb 25, 2020
by
cmaffeo2
Browse files
Minor bug fix: Segment.rotate() provides numpy array of quaternions instead of list
parent
5d2010c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
mrdna/readers/segmentmodel_from_pdb.py
View file @
5e2b9f05
...
...
@@ -327,7 +327,7 @@ def SegmentModelFromPdb(*args,**kwargs):
stacks
,
three_prime
,
seq
,
orientations
np
.
array
(
orientations
)
)
if
__name__
==
"__main__"
:
...
...
mrdna/segmentmodel.py
View file @
5e2b9f05
...
...
@@ -573,7 +573,7 @@ class Segment(ConnectableElement, Group):
orientations
=
np
.
array
([
self
.
contour_to_orientation
(
v
)
for
v
in
u
])
for
i
in
ids
:
orientations
[
i
,:]
=
rotation_matrix
.
dot
(
orientations
[
i
])
quats
=
[
quaternion_from_matrix
(
o
)
for
o
in
orientations
]
quats
=
np
.
array
(
[
quaternion_from_matrix
(
o
)
for
o
in
orientations
]
)
self
.
set_orientation_splines
(
u
,
quats
)
def
_set_splines_from_ends
(
self
,
resolution
=
4
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment