Merge branch 'geometry-class' of magit1.mpie.de:/damask/DAMASK into geometry-class

This commit is contained in:
Martin Diehl 2019-05-26 09:19:29 +02:00
commit a242382bed
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ parser.set_defaults(degrees = False,
(options, filenames) = parser.parse_args() (options, filenames) = parser.parse_args()
if sum(x is not None for x in [options.rotation,options.eulers,options.matrix,options.quaternion]) != 1: if sum(x is not None for x in [options.rotation,options.eulers,options.matrix,options.quaternion]) != 1:
parser.error('not exactly one rotation specified...') parser.error('more than one rotation specified.')
if options.quaternion is not None: if options.quaternion is not None:
eulers = damask.Rotation.fromQuaternion(np.array(options.quaternion)).asEulers(degrees=True) eulers = damask.Rotation.fromQuaternion(np.array(options.quaternion)).asEulers(degrees=True)