Skip to content

Commit

Permalink
PEtab Import: Fix bug in steady states
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasneubrand committed Dec 10, 2024
1 parent 023c612 commit 4eec031
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arFramework3/ImportExport/arImportPEtab.m
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function arImportPEtab(name, doPreEq)

arLoadParsPEtab(PEparas);

arFindInputs % might overwrite parameters due to ar.pExtern, but input times might be in parameters table.
arFindInputs(); % might overwrite parameters due to ar.pExtern, but input times might be in parameters table.
arLoadParsPEtab(PEparas);

if exist('Tms','var')
Expand All @@ -134,7 +134,11 @@ function arImportPEtab(name, doPreEq)
if isfield(table2struct(Tdat), 'preequilibrationConditionId')
uniqueSimConds = unique(Tdat.simulationConditionId);
uniquePreEqConds = unique(Tdat.preequilibrationConditionId);
if ~strcmp(class(uniquePreEqConds),'string')
if isa(uniquePreEqConds, 'string')
if all(strcmp(uniquePreEqConds, ""))
uniquePreEqConds = [];
end
else
if all(isnan(uniquePreEqConds))
uniquePreEqConds = [];
end
Expand Down

0 comments on commit 4eec031

Please sign in to comment.