parent
c9f344758a
commit
302f020f63
|
@ -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],)
|
||||
|
|
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue