Merge branch 'crystal-polishing' into 'development'

nicer formatting

See merge request damask/DAMASK!442
This commit is contained in:
Philip Eisenlohr 2021-10-12 11:47:08 +00:00
commit ee537ff5e1
1 changed files with 2 additions and 2 deletions

View File

@ -114,8 +114,8 @@ class Crystal():
"""Represent."""
return '\n'.join([f'Crystal family {self.family}']
+ ([] if self.lattice is None else [f'Bravais lattice {self.lattice}']+
list(map(lambda x:f'{x[0]}:{x[1]:.5g}',
zip(['a','b','c','alpha','beta','gamma',],
list(map(lambda x:f'{x[0]}: {x[1]:.5g}',
zip(['a','b','c','α','β','γ',],
self.parameters))))
)