Skip to content

Commit

Permalink
Fix/small fixes (SysBioChalmers#563)
Browse files Browse the repository at this point in the history
* fix: printOrange prevent double output

* fix: exportModel pass through supressWarnings flag
  • Loading branch information
edkerk authored Oct 12, 2024
1 parent 04cdcc9 commit 38f8415
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/printOrange.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
sz = get(0, 'CommandWindowSize');
orangeString = textwrap({orangeString},sz(1));
orangeString = strjoin(orangeString,'\n');
fprintf(orangeString)
fprintf(orangeString);
end
end
2 changes: 1 addition & 1 deletion doc/core/printOrange.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" sr
0019 sz = get(0, <span class="string">'CommandWindowSize'</span>);
0020 orangeString = textwrap({orangeString},sz(1));
0021 orangeString = strjoin(orangeString,<span class="string">'\n'</span>);
0022 fprintf(orangeString)
0022 fprintf(orangeString);
0023 <span class="keyword">end</span>
0024 <span class="keyword">end</span></pre></div>
<hr><address>Generated by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" title="Matlab Documentation in HTML">m2html</a></strong> &copy; 2005</address>
Expand Down
2 changes: 1 addition & 1 deletion doc/io/exportModel.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ <h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" sr
0109
0110 <span class="comment">%Check the model structure</span>
0111 <span class="keyword">if</span> supressWarnings==false
0112 checkModelStruct(model);
0112 checkModelStruct(model,false);
0113 <span class="keyword">end</span>
0114
0115 <span class="comment">%Add several blank fields, if they do not exist already. This is to reduce</span>
Expand Down
2 changes: 1 addition & 1 deletion io/exportModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function exportModel(model,fileName,COBRAstyle,supressWarnings,sortIds)

%Check the model structure
if supressWarnings==false
checkModelStruct(model);
checkModelStruct(model,false);
end

%Add several blank fields, if they do not exist already. This is to reduce
Expand Down

0 comments on commit 38f8415

Please sign in to comment.