From c7f59c648296cf4a0ee5725d4336899c2fc29604 Mon Sep 17 00:00:00 2001 From: Haiming Zhang Date: Thu, 11 Jun 2015 17:57:23 +0000 Subject: [PATCH] change angle into radian. --- processing/pre/hybridIA_linODFsampling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processing/pre/hybridIA_linODFsampling.py b/processing/pre/hybridIA_linODFsampling.py index 416b2aa14..60d50e4e0 100755 --- a/processing/pre/hybridIA_linODFsampling.py +++ b/processing/pre/hybridIA_linODFsampling.py @@ -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