Skip to content

Commit

Permalink
Correct a possible negative phase advance for a single refpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
lfarv committed Nov 1, 2018
1 parent 881a889 commit f8e44f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atmat/atphysics/ParameterSummaryFunctions/atlinopt.m
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
function UP = BetatronPhaseUnwrap(P)
% unwrap negative jumps in betatron
%JUMPS = [0; diff(P)] < -1.e-5;
JUMPS = [0; diff(P)] < -1.e-3;
JUMPS = diff([0;P]) < -1.e-3;
UP = P+cumsum(JUMPS)*2*pi;
end

Expand Down

0 comments on commit f8e44f4

Please sign in to comment.