Commit b4814f88 authored by Simone Liuzzo's avatar Simone Liuzzo

resotre non DQ list of magnets.

parent 6b89c347
......@@ -107,7 +107,8 @@ qemres.dpp=syncorb(5,1);
[~,tunes]=atlinopt(qemres.at,qemres.dpp);
qemres.fractunes=periods*tunes-fix(periods*tunes);
% qemres.dipidx=find(atgetcells(atmod.ring,'FamName','[DJ]L[12][AE]_3','DQ1[B]','DQ2C_1'))';%,'DQ1[BD]' atmod.get(0,'di');
% this first list is ok for dipoles, not ok for skew quadrupoles!
% qemres.dipidx=find(atgetcells(atmod.ring,'FamName','[DJ]L[12][AE]_[15]','DQ1[B]\w*','DQ2C\w*'))';%,'DQ1[BD]' atmod.get(0,'di');
qemres.dipidx=find(atgetcells(atmod.ring,'FamName','[DJ]L[12][AE]_[15]','ml\w*'))';%,'DQ1[BD]' atmod.get(0,'di');
bang=atmod.getfieldvalue(qemres.dipidx,'BendingAngle');
qemres.dipidx=qemres.dipidx(bang>0.001);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment