import IMP import IMP.test import IMP.core import IMP.atom import IMP.em2d import IMP.em import os import random from math import * def get_angle_difference_from_rotation(angle,determined_angle): difference1=abs(angle-determined_angle) difference2=abs(angle+determined_angle-6.28) if(difference2