Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BeamDynamics
matutil
Commits
6bfff0ce
Commit
6bfff0ce
authored
Aug 24, 2018
by
Simone Liuzzo
Browse files
wrongbpms okbpm modified to use qemres.wrongbpms
parent
98f6d683
Changes
1
Hide whitespace changes
Inline
Side-by-side
qem/qempanel2.m
View file @
6bfff0ce
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment