Skip to content

Commit

Permalink
Made warning message wait for input
Browse files Browse the repository at this point in the history
  • Loading branch information
bjack205 committed Jul 20, 2015
1 parent 29c9e09 commit 761259f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Code/ReadCTFFile.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ function ScanParamsData(FileStr, VarName)
% Assumes square cropping
% Formula by DTF
if ~isfield(ScanParams,'PCX') || ~isfield(ScanParams,'PCY') || ~isfield(ScanParams,'VHRatio') || ~isfield(ScanParams,'DD')
warndlg({'No Pattern Center data found. PC vals set to zero.';'Run PC Calibration'},'Missing Info in .CPR file');
w = warndlg({'No Pattern Center data found. PC vals set to zero.';'Run PC Calibration'},'Missing Info in .CPR file');
uiwait(w)
ScanParams.xstar = 0.1;
ScanParams.ystar = 0.1;
ScanParams.zstar = 0.1;
Expand Down

0 comments on commit 761259f

Please sign in to comment.