change angle into radian.

This commit is contained in:
Haiming Zhang 2015-06-11 17:57:23 +00:00
parent a370372c1b
commit c7f59c6482
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ for file in files:
counter = 0
for line in Orientations:
eulers = re.split(r'[\t]', line.strip())
file['outang'].write(''.join(['%10.5f'%float(angle) for angle in eulers])+
file['outang'].write(''.join(['%10.5f'%math.radians(float(angle)) for angle in eulers])+
''.join(['%10.5f'%coord for coord in [counter%sizeX,counter//sizeX]])+
' 100.0 1.0 0 1 1.0\n')
counter += 1