Skip to content

Commit

Permalink
forgotten during conversion to MillerConvention
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfHielscher committed Dec 6, 2020
1 parent 52e1518 commit 22832e1
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions geometry/@Miller/Miller.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
% crystalSymmetry.crystalSymmetry

properties
dispStyle (1,1) MillerConvention = 'hkl' % output convention hkl or uvw
dispStyle = MillerConvention.hkl % output convention hkl or uvw
end

properties (Access = private)
Expand Down Expand Up @@ -168,23 +168,10 @@
% recompute representation in cartesian coordinates
if m.CSprivate ~= cs

switch m.dispStyle

case 'uvw'

uvw = m.uvw; %#ok<*PROPLC>
m.CSprivate = cs;
m.uvw = uvw;

case 'hkl'

hkl = m.hkl;
m.CSprivate = cs;
m.hkl = hkl;

otherwise
m.CSprivate = cs;
end
coord = m.coordinates;
m.CSprivate = cs;
m.coordinates = coord;

else
m.CSprivate = cs;
end
Expand All @@ -201,8 +188,7 @@
function m = set.convention(m,dS)
m.convention = dS;
end



function c = get.coordinates(m)
c = m.(char(m.dispStyle));
end
Expand Down

0 comments on commit 22832e1

Please sign in to comment.