https://github.com/Becksteinlab/MDPOW/blob/525f2cf09a88074442daf89eb070e327fa8d1eca/mdpow/tests/test_automated_dihedral_analysis.py#L178