Skip to content

Commit

Permalink
Merge pull request #406 from SysBioChalmers/fix/addRxns
Browse files Browse the repository at this point in the history
fix: addRxns new subSystems as cell arrays
  • Loading branch information
edkerk authored Mar 26, 2022
2 parents ca3dc45 + 247393f commit edb2c59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/addRxns.m
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@
if ~isfield(newModel,'subSystems')
newModel.subSystems=celllargefiller;
end
newModel.subSystems=[newModel.subSystems;rxnsToAdd.subSystems(:)];
newModel.subSystems=[newModel.subSystems;rxnsToAdd.subSystems];
else
%Fill with standard if it doesn't exist
if isfield(newModel,'subSystems')
Expand Down
2 changes: 1 addition & 1 deletion doc/core/addRxns.html
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ <h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" sr
0370 <span class="keyword">if</span> ~isfield(newModel,<span class="string">'subSystems'</span>)
0371 newModel.subSystems=celllargefiller;
0372 <span class="keyword">end</span>
0373 newModel.subSystems=[newModel.subSystems;rxnsToAdd.subSystems(:)];
0373 newModel.subSystems=[newModel.subSystems;rxnsToAdd.subSystems];
0374 <span class="keyword">else</span>
0375 <span class="comment">%Fill with standard if it doesn't exist</span>
0376 <span class="keyword">if</span> isfield(newModel,<span class="string">'subSystems'</span>)
Expand Down

0 comments on commit edb2c59

Please sign in to comment.