looks better

at least on Linux
This commit is contained in:
Martin Diehl 2022-05-11 07:02:20 +02:00
parent c9f344758a
commit 302f020f63
2 changed files with 2 additions and 2 deletions

View File

@ -1025,7 +1025,7 @@ class Result:
@staticmethod
def _add_pole(q,uvw,hkl,with_symmetry):
c = q['meta']['c/a'] if 'c/a' in q['meta'] else 1
brackets = ['[]','()','〈〉','{}'][(uvw is None)*1+with_symmetry*2]
brackets = ['[]','()','⟨⟩','{}'][(uvw is None)*1+with_symmetry*2]
label = 'p^' + '{}{} {} {}{}'.format(brackets[0],
*(uvw if uvw else hkl),
brackets[-1],)

View File

@ -233,7 +233,7 @@ class TestResult:
default.add_pole(**options)
rot = default.place('O')
in_memory = Orientation(rot,lattice=rot.dtype.metadata['lattice']).to_pole(**options)
brackets = [['[[]','[]]'],'()','〈〉','{}'][('hkl' in options)*1+(options['with_symmetry'])*2] # escape fnmatch
brackets = [['[[]','[]]'],'()','⟨⟩','{}'][('hkl' in options)*1+(options['with_symmetry'])*2] # escape fnmatch
label = 'p^{}{} {} {}{}'.format(brackets[0],
*(list(options.values())[0]),
brackets[-1])