round to reasonable precision

without symmetry, there are 36000**3 = 46656000000000 orientations
This commit is contained in:
Martin Diehl 2019-05-30 14:11:54 +02:00
parent bf60cffab5
commit c2a5f37818
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit 78641eab9dd03d2b11c4d2a2ecb222822fbbb2a9
Subproject commit 85a39db96387330e2509650558fddc31e048e6ea

View File

@ -135,7 +135,7 @@ for name in filenames:
for i,data in enumerate(unique):
ori = damask.Rotation(data[0:4])
config_header += ['[Grain{}]'.format(i+1),
'(gauss)\tphi1 {:g}\tPhi {:g}\tphi2 {:g}'.format(*ori.asEulers(degrees = True)),
'(gauss)\tphi1 {:.2f}\tPhi {:.2f}\tphi2 {:.2f}'.format(*ori.asEulers(degrees = True)),
]
if options.axes is not None: config_header += ['axes\t{} {} {}'.format(*options.axes)]