make sure period is positive

git-svn-id: https://svn.salilab.org/imp/trunk@17341 e91f8c7b-0e32-4433-a9ac-4502d39a4eab