Skip to content

Commit

Permalink
matlab test
Browse files Browse the repository at this point in the history
  • Loading branch information
swhite2401 committed Sep 20, 2024
1 parent fd44720 commit 7091f7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions atmat/attests/pytests.m
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ function offmomdf(testCase, dp)
function tunechrom4(testCase,lat,dp)
% test on and off-momentum tunes of 4D lattices
lattice=testCase.ring4.(lat);
periodicity = atGetRingProperties(lattice,'Periodicity');
[mtune,mchrom]=tunechrom(lattice.m,'get_chrom',dp=dp);
periodicity = atGetRingProperties(lattice.m,'Periodicity');
[mtune,mchrom]=tunechrom(lattice,'get_chrom',dp=dp);
ptune=double(lattice.p.get_tune(pyargs(dp=dp)));
pchrom=double(lattice.p.get_chrom(pyargs(dp=dp)));
testCase.verifyEqual(mtune*periodicity,ptune,AbsTol=2.e-9);
Expand All @@ -175,7 +175,7 @@ function tunechrom4(testCase,lat,dp)
function tunechrom6(testCase,lat2,dp)
% test on and off-momentum tunes of 6D lattices
lattice=testCase.ring6.(lat2);
periodicity = atGetRingProperties(lattice,'Periodicity');
periodicity = atGetRingProperties(lattice.m,'Periodicity');
mlat=atsetcavity(lattice.m,frequency='nominal',dp=dp);
plat=lattice.p.set_rf_frequency(pyargs(dp=dp,copy=true));
[mtune,mchrom]=tunechrom(mlat,'get_chrom');
Expand Down

0 comments on commit 7091f7e

Please sign in to comment.