Skip to content

Commit

Permalink
minor correction
Browse files Browse the repository at this point in the history
  • Loading branch information
teddychao committed Jan 7, 2024
1 parent 627e82d commit 8b8f29a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/pspm_check_model.m
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,10 @@
%% 9. TAM-specific checks
% -------------------------------------------------------------------------
if strcmpi(modeltype, 'tam')
if (~isfield(model, 'window') || isempty(model.window) || ~isnumeric(model.window))
if (~isfield(model, 'window') || isempty(model.window) || ~isnumeric(model.window))
warning('ID:invalid_input', 'Window is expected to be a numeric value.'); return;
elseif

if ~isfield(model, 'modelspec')
model.modelspec = settings.tam(1).modelspec;
elseif ~isfield(model, 'modelspec')
model.modelspec = settings.tam(1).modelspec;
elseif ~ismember(model.modelspec, {settings.tam.modelspec})
warning('ID:invalid_input', 'Unknown model specification %s.', model.modelspec); return;
end
Expand Down

0 comments on commit 8b8f29a

Please sign in to comment.