Skip to content

Commit

Permalink
Running batch simulations.
Browse files Browse the repository at this point in the history
Relaxing batch size restrictions.
  • Loading branch information
danv61 committed May 21, 2021
1 parent 451171e commit b084e5c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,15 +310,6 @@ public void getBatchSimulationsResults(OutputContext outputContext, Simulation s
}

SimulationOwner simOwner = getSimWorkspace().getSimulationOwner();
// if(!(simOwner instanceof SimulationContext)) {
// throw new RuntimeException("Template Simulation Owner must be a SimulationContext");
// }
// SimulationContext simContext = (SimulationContext)simOwner;
// BioModel bioModel = simContext.getBioModel();
// if(bioModel==null) {
// throw new RuntimeException("Cannot add simulation, bioModel not set");
// }

File batchResultsDir = ResourceUtil.getLocalBatchDir();
// File localSimDir = ResourceUtil.getLocalSimDir(User.tempUser.getName());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ public AnalysisTask copyAnalysisTask(AnalysisTask analysisTask) throws java.bean
}
}

private final int MaxBatchSize = 199;
private final int MaxBatchSize = 999;
public static final String ReservedBatchExtensionString = "_bat_";
public Simulation createBatchSimulations(Simulation simulation, Map<Integer, Map<String, String>> batchInputDataMap) throws java.beans.PropertyVetoException {
if(getMathDescription() == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public boolean contains(Simulation simulation) {
return bFound;
}

private final int MaxBatchSize = 199;
private final int MaxBatchSize = 999;
public static final String ReservedBatchExtensionString = "_bat_";
public Simulation createBatchSimulations(Simulation simulation, Map<Integer, Map<String, String>> batchInputDataMap) throws java.beans.PropertyVetoException {
// throw new RuntimeException("This feature is not supported for MathModels.");
Expand Down

0 comments on commit b084e5c

Please sign in to comment.