Commit 6bfff0ce authored by Simone Liuzzo's avatar Simone Liuzzo
Browse files

wrongbpms okbpm modified to use qemres.wrongbpms

parent 98f6d683
......@@ -126,7 +126,7 @@ set(handles.DCRMcheckbox,'Enable','off')
set(handles.FullRMcheckbox,'Enable','off')
set(handles.PartialRMcheckbox,'Enable','off')
wrongbpms=[];
wrongbpms=qemres.wrongbpms; % find(bpmm.All_Status.read~=0)
[semres.resph,semres.respv]=semloadresp(qemres,semres,wrongbpms);
[qemres.resph,qemres.respv,qemres.frespx,semres.frespz]=qemcheckresp(qemres,semres,wrongbpms);
semres.respiax=load_sriaxresp(qemres.datadir,qemres.opticsdir,'h2v',semres.hlist);
......@@ -156,6 +156,8 @@ else
end
dispfunc=@(i,itot) waitbar(i/itot,hw);
okbpm=true(length(qemres.bpmidx),1);
okbpm(qemres.wrongbpms) = false;
if get(handles.AnalyticFitCheck,'Value') == 1
qemb(2).kn=qempanelfitqAnalytic(qemb(2),qemres,semres,qemres.qpfit,okbpm,qemres.qmode,dispfunc);
else
......@@ -173,6 +175,7 @@ function pushbutton19_Callback(hObject, eventdata, handles)
% handles structure with handles and user data (see GUIDATA)
global qemb qemres semres
okbpm=true(length(qemres.bpmidx),1);
okbpm(qemres.wrongbpms) = false;
set(handles.statustext,'String','fitting dipoles');
if get(handles.AnalyticFitCheck,'Value') == 1
......
Supports Markdown
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