Skip to content

Commit

Permalink
reword error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
denispelli committed Jun 24, 2020
1 parent 470bc9c commit 0332fb1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/UncertainEOverN.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
%
%% 'orthogonalLetter'
% Provides orthonormal signals to the letter code to confirm that it
% performs identically with the Gabor code. Currently the threshold
% contrast thresholds agree to within 0.01 log unit.
% performs identically with the Gabor code. Currently the contrast
% thresholds agree to within 0.01 log unit.
%
% INPUT ARGUMENTS:
% "MM" is an array of one or more degrees of uncertainty M, each a positive
Expand Down Expand Up @@ -170,13 +170,14 @@
o.noiseSD=0.5;
o.N=o.noiseSD^2;
if ~ismember({psych.targetFont},{'Sloan'})
error(...
warning(...
['UncertainEOverN: Currently, when psych.targetKind=''letter'', '...
'psych.targetFont must be ''Sloan'', not ''%s''.'],...
'psych.targetFont must be ''Sloan'', not ''%s''. Setting that threshold to NaN.'],...
psych.targetFont);
EOverN=nan;
return
end
% These values assume the Sloan font.
o.targetHeightOverWidth=1;
o.targetFontHeightOverNominal=1;
o.targetFont=psych.targetFont;
Expand Down

0 comments on commit 0332fb1

Please sign in to comment.