示例#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')])