From 302f020f6346e0ba4aae0304180021a89b180204 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 11 May 2022 07:02:20 +0200 Subject: [PATCH] looks better at least on Linux --- python/damask/_result.py | 2 +- python/tests/test_Result.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/damask/_result.py b/python/damask/_result.py index 2eb4e585a..253881731 100644 --- a/python/damask/_result.py +++ b/python/damask/_result.py @@ -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],) diff --git a/python/tests/test_Result.py b/python/tests/test_Result.py index 559ff514f..7e107494a 100644 --- a/python/tests/test_Result.py +++ b/python/tests/test_Result.py @@ -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])