Skip to content

Commit

Permalink
Merge pull request #133 from openworm/development
Browse files Browse the repository at this point in the history
Release 0.3.8
  • Loading branch information
tarelli authored Nov 2, 2017
2 parents 7ff60c7 + 88933a2 commit f5f9c0a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>org.geppetto</groupId>
<artifactId>simulation</artifactId>
<name>Geppetto Simulation Bundle</name>
<version>0.3.7</version>
<version>0.3.8</version>
<packaging>bundle</packaging>
<properties>
<spring.version>3.1.3.RELEASE</spring.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,14 @@ public void persistProject(String requestId, IGeppettoProject project) throws Ge
// since it's id based
DataManagerHelper.getDataManager().addGeppettoProject(project, getUser());

// update the ids of ExperimentState objects
RuntimeProject runtimeProject = getRuntimeProject(project);
for (IExperiment experiment : project.getExperiments()) {
ExperimentState experimentState = runtimeProject.getRuntimeExperiment(experiment).getExperimentState();
experimentState.setExperimentId(experiment.getId());
experimentState.setProjectId(project.getId());
}

URL url = URLReader.getURL(project.getGeppettoModel().getUrl(), project.getBaseURL());
Path localGeppettoModelFile = Paths.get(URLReader.createLocalCopy(scope, project.getId(), url, true).toURI());

Expand Down

0 comments on commit f5f9c0a

Please sign in to comment.