Skip to content

Commit

Permalink
Fixing when SummaryLogger saves to disk
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Jan 8, 2015
1 parent 047d293 commit dd7ae4a
Showing 1 changed file with 9 additions and 7 deletions.
Expand Up @@ -275,12 +275,14 @@ function runSimulation(this, sim)
ic = this.initialConditions;

%load perturbations
if ~isempty(this.outDir) && exist([this.outDir filesep 'conditions.xml'], 'file')
data = ConditionSet.parseConditionSet(sim, [this.outDir filesep 'conditions.xml']);
data.metadata.knowledgeBaseWID = knowledgeBaseWID;
sim.applyOptions(data.options);
sim.applyOptions(data.perturbations);
sim.applyParameters(data.parameters);
if ~isempty(this.outDir)
if exist([this.outDir filesep 'conditions.xml'], 'file')
data = ConditionSet.parseConditionSet(sim, [this.outDir filesep 'conditions.xml']);
data.metadata.knowledgeBaseWID = knowledgeBaseWID;
sim.applyOptions(data.options);
sim.applyOptions(data.perturbations);
sim.applyParameters(data.parameters);
end
summaryLogger.setOptions(struct('verbosity', sim.verbosity, 'outputDirectory', this.outDir));
end

Expand Down Expand Up @@ -549,4 +551,4 @@ function modifyNetworkStructure(~, kb)
bioComp, bioProd, byprod, unaccECons) %#ok<INUSL,MANU>
end
end
end
end

0 comments on commit dd7ae4a

Please sign in to comment.