private void compute(string pkmlFile) { _logger.AddInfo($"Computing file '{pkmlFile}'"); var simulation = loadSimulationFromFile(pkmlFile); _simulationBatchRunner.Compute(simulation); }
private void compute(string projectFile) { _logger.AddInfo($"Computing file '{projectFile}'"); _serializationTask.LoadProject(projectFile); var project = _context.CurrentProject; foreach (var simulation in project.Simulations) { _logger.AddInfo($"Computing simulation '{simulation.Name}'"); try { _simulationBatchRunner.Compute(simulation); } catch (Exception e) { _logger.AddError(e.FullMessage()); } } }