Skip to content

Commit

Permalink
fix: exportModel model.comps check
Browse files Browse the repository at this point in the history
  • Loading branch information
edkerk committed Nov 4, 2021
1 parent e329244 commit e715abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/exportModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function exportModel(model,fileName,exportGeneComplexes,supressWarnings)
end

if isfield(modelSBML.compartment,'metaid')
if regexp(model.comps(i),'^[^a-zA-Z_]')
if regexp(model.comps{i},'^[^a-zA-Z_]')
EM='The compartment IDs are in numeric format. For the compliance with SBML specifications, compartment IDs will be preceded with "c_" string';
dispEM(EM,false);
model.comps(i)=strcat('c_',model.comps(i));
Expand Down

0 comments on commit e715abf

Please sign in to comment.