Commit 862f84b2 authored by Simone Liuzzo's avatar Simone Liuzzo

dq2c correctors is now recognized

parent a87949c3
......@@ -27,7 +27,7 @@ end
[idx]=ebs.anyindex(12,@bindex,varargin{:});
function [cellnum,id]=bindex(bname)
qpattern='(?:^srmag/|^)(?<plane>hst-|vst-|sqp-|^|\w{0,0})(?<sextname>s[hdf][123]|dq[12])/c(?<cellname>\d{1,2})-(?<celpos>[abde])(?:/\w*$|$)';
qpattern='(?:^srmag/|^)(?<plane>hst-|vst-|sqp-|^|\w{0,0})(?<sextname>s[hdf][123]|dq[12])/c(?<cellname>\d{1,2})-(?<celpos>[abcde])(?:/\w*$|$)';
toks=regexpi(bname,qpattern,'names');
if isempty(toks),error('SX:wrongName',['Wrong steerer name ' bname]); end
if ~isempty(toks.plane), plane=upper(toks.plane(1));else plane=toks.plane; end
......
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