Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
num3RIK committed Sep 5, 2023
2 parents e983fbf + e0edcf5 commit dde5acc
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
3 changes: 1 addition & 2 deletions SO3Fun/@SO3VectorFieldHandle/eval.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
f = SO3TangentVector(f,SO3VF.tangentSpace);
if check_option(varargin,'right')
f = right(f,ori);
end
if check_option(varargin,'left')
elseif check_option(varargin,'left')
f = left(f,ori);
end

Expand Down
4 changes: 2 additions & 2 deletions doc/Plotting/CombinedPlots.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
% <matlab:doc('hold') hold off>. Let's demonstrate this using a simple
% example.

plot([2 2])
plot([2 2],'LineWidth',2)

hold all

plot([1 3])
plot([1 3],'LineWidth',2)

hold off

Expand Down
2 changes: 2 additions & 0 deletions geometry/@crystalSymmetry/crystalSymmetry.m
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@

if any(isPerpZ(:))
s.multiplicityPerpZ = round(2*pi/min(abs(angle(s.rot(isPerpZ)))));
else
s.multiplicityPerpZ = 1;
end
end
cs = s;
Expand Down
14 changes: 13 additions & 1 deletion geometry/@specimenSymmetry/specimenSymmetry.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,19 @@ function display(s)
% versions

% maybe there is nothing to do
if isa(s,'specimenSymmetry'), cs = s; return; end
if isa(s,'specimenSymmetry')
if isempty(s.multiplicityPerpZ)
isPerpZ = isnull(dot(s.rot.axis,zvector)) & ~isnull(s.rot.angle);

if any(isPerpZ(:))
s.multiplicityPerpZ = round(2*pi/min(abs(angle(s.rot(isPerpZ)))));
else
s.multiplicityPerpZ = 1;
end
end
cs = s;
return;
end

if isfield(s,'rot')
rot = s.rot;
Expand Down
6 changes: 1 addition & 5 deletions interfaces/loadODF_VPSC.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,14 @@
ori = orientation.byEuler(d(range,1:3) * degree,cs);
weights = d(range,4);

if size(d,2) > 4
data = d(range,5:size(d,2));
end

odf{k} = calcDensity(ori,'weights',weights,varargin{:}); %#ok<AGROW>
odf{k}.opt.strain = d(1+(nOri+4)*(k-1),1); %#ok<AGROW>
odf{k}.opt.strainEllipsoid = d(2+(nOri+4)*(k-1),1:3); %#ok<AGROW>
odf{k}.opt.strainEllipsoidAngles = d(3+(nOri+4)*(k-1),1:3); %#ok<AGROW>

% also store data (individual orientations, ellipsoids, Taylor factors)
odf{k}.opt.orientations = ori;
odf{k}.opt.data = weights;
odf{k}.opt.data = d(range,5:size(d,2));

end

Expand Down

0 comments on commit dde5acc

Please sign in to comment.