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