Skip to content

Commit

Permalink
doc: clarify warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
edkerk committed Nov 4, 2021
1 parent 8e5eb7f commit 739ea86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/checkModelStruct.m
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ function checkModelStruct(model,throwErrors,trimWarnings)

%Multiple or no objective functions not allowed in SBML L3V1 FBCv2
if numel(find(model.c))>1
EM='The model has multiple objective functions, which might be intended, but will not allow the model to be exported to SBML:';
EM='Multiple objective functions found. This might be intended, but exportModel will fail due to SBML FBCv2 non-compliance:';
dispEM(EM,false,model.rxns(find(model.c)),trimWarnings);
elseif ~any(model.c)
EM='The model has no objective function in model.c, which might be intended, but will not allow the model to be exported to SBML';
EM='No objective function found. This might be intended, but exportModel will fail due to SBML FBCv2 non-compliance';
dispEM(EM,false);
end

Expand Down
4 changes: 2 additions & 2 deletions doc/core/checkModelStruct.html
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,10 @@ <h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" sr
0248
0249 <span class="comment">%Multiple or no objective functions not allowed in SBML L3V1 FBCv2</span>
0250 <span class="keyword">if</span> numel(find(model.c))&gt;1
0251 EM=<span class="string">'The model has multiple objective functions, which might be intended, but will not allow the model to be exported to SBML:'</span>;
0251 EM=<span class="string">'Multiple objective functions found. This might be intended, but exportModel will fail due to SBML FBCv2 non-compliance:'</span>;
0252 <a href="dispEM.html" class="code" title="function dispEM(string,throwErrors,toList,trimWarnings)">dispEM</a>(EM,false,model.rxns(find(model.c)),trimWarnings);
0253 <span class="keyword">elseif</span> ~any(model.c)
0254 EM=<span class="string">'The model has no objective function in model.c, which might be intended, but will not allow the model to be exported to SBML'</span>;
0254 EM=<span class="string">'No objective function found. This might be intended, but exportModel will fail due to SBML FBCv2 non-compliance'</span>;
0255 <a href="dispEM.html" class="code" title="function dispEM(string,throwErrors,toList,trimWarnings)">dispEM</a>(EM,false);
0256 <span class="keyword">end</span>
0257
Expand Down

0 comments on commit 739ea86

Please sign in to comment.