Skip to content

Commit

Permalink
Adds code to check for invalid procedures in RATMain
Browse files Browse the repository at this point in the history
  • Loading branch information
DrPaulSharp committed Aug 7, 2024
1 parent 1434829 commit 29400a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions API/RATMain.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
fprintf('\nRunning DREAM\n\n');
end
[problemStruct,result,bayesResults] = runDREAM(problemStruct,problemCells,problemLimits,controls,priors);
otherwise
throw(exceptions.invalidOption(sprintf('procedure must be a procedures enum or one of the following strings (%s)', ...
strjoin(procedures.values(), ', '))));
end

% Then just do a final calculation to fill in SLD if necessary
Expand Down

0 comments on commit 29400a3

Please sign in to comment.