From 4eec031c44a0c90991b27cb5403d4fe14cf8ca3d Mon Sep 17 00:00:00 2001 From: Niklas Neubrand <38315848+niklasneubrand@users.noreply.github.com> Date: Tue, 10 Dec 2024 13:27:49 +0100 Subject: [PATCH] PEtab Import: Fix bug in steady states --- arFramework3/ImportExport/arImportPEtab.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arFramework3/ImportExport/arImportPEtab.m b/arFramework3/ImportExport/arImportPEtab.m index e8eaa8b8..6ec91e9f 100644 --- a/arFramework3/ImportExport/arImportPEtab.m +++ b/arFramework3/ImportExport/arImportPEtab.m @@ -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') @@ -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