Commit 5e2b9f05 authored by cmaffeo2's avatar cmaffeo2
Browse files

Minor bug fix: Segment.rotate() provides numpy array of quaternions instead of list

parent 5d2010c5
......@@ -327,7 +327,7 @@ def SegmentModelFromPdb(*args,**kwargs):
stacks,
three_prime,
seq,
orientations
np.array(orientations)
)
if __name__ == "__main__":
......
......@@ -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):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment