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) ])
def bond_angle_pairs(self): """`cyclic_pairs` of `Bond`\ s.""" return cyclic_pairs(self.data)
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)])
def test1(): lst = ['a', 'b', 'c'] assert_equal(cyclic_pairs(lst), [('a', 'b'), ('b', 'c'), ('c', 'a')])