def check_dihedral(a, b, c, d, angle):
    deg = ((gemmi.calculate_dihedral(a, b, c, d) * 180) / pi)
    self.assertAlmostEqual(deg, angle, places=4)
def check_dihedral(a, b, c, d, angle):
    deg = ((gemmi.calculate_dihedral(a, b, c, d) * 180) / pi)
    self.assertAlmostEqual(deg, angle, places=4)