예제 #1
0
 def angles(self):
     """:class:`~numpy:numpy.ndarray` of `Bond` pair angles."""
     return np.asarray([
         vec.angle(b1.vector, b2.vector) for (b1, b2) in cyclic_pairs(self)
     ])
예제 #2
0
 def bond_angle_pairs(self):
     """`cyclic_pairs` of `Bond`\ s."""
     return cyclic_pairs(self.data)
예제 #3
0
 def bond_angle_pairs(self):
     """`cyclic_pairs` of `Bond`\ s."""
     return cyclic_pairs(self.data)
예제 #4
0
 def angles(self):
     """:class:`~numpy:numpy.ndarray` of `Bond` pair angles."""
     return np.asarray([vec.angle(b1.vector, b2.vector) for (b1, b2) in
                        cyclic_pairs(self)])
예제 #5
0
def test1():
    lst = ['a', 'b', 'c']
    assert_equal(cyclic_pairs(lst), [('a', 'b'), ('b', 'c'), ('c', 'a')])