Skip to content

Commit

Permalink
PEtab Import: Disable backup of model and data
Browse files Browse the repository at this point in the history
arSave did not work properly with PEtab models. Some fields for model and data backup are missing if model is not created with the standard  d2d procedure.
Fix: deactivate backup.
  • Loading branch information
niklasneubrand committed Nov 26, 2024
1 parent 5ab53f9 commit 023c612
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arFramework3/ImportExport/arImportPEtab.m
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,17 @@ function arImportPEtab(name, doPreEq)
[~,~,eventStruct] = arParseSBML([sbmlmodel.folder filesep sbmlmodel.name]);
arLoadModel(strrep(sbmlmodel.name,'.xml',''))

%
ar.config.backup_modelAndData = false;

PEobs = [strrep(name{2},'.tsv',''),'.tsv'];
PEmeas = [strrep(name{3},'.tsv',''),'.tsv'];
PEconds = [strrep(name{4},'.tsv',''),'.tsv'];
PEparas = [strrep(name{5},'.tsv',''),'.tsv'];

T = cell(2, length(ar.model));
for m = 1:length(ar.model)
[T{m,1}, T{m,2}] = ...
arLoadDataPEtab(PEmeas,PEobs,m);
[T{m,1}, T{m,2}] = arLoadDataPEtab(PEmeas,PEobs,m);
end
Tcond = arLoadCondPEtab(PEconds, T);

Expand Down

0 comments on commit 023c612

Please sign in to comment.