Skip to content

Commit

Permalink
Merge pull request #71 from NeuroML/development
Browse files Browse the repository at this point in the history
For NML v2.1 release
  • Loading branch information
pgleeson authored Mar 22, 2021
2 parents daa29d9 + 6d509c5 commit ce18e86
Show file tree
Hide file tree
Showing 14 changed files with 709 additions and 344 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/src/test/resources/examples/ShapedCell.cell.png
/src/test/resources/examples/TwoCell.net.png
/src/test/resources/examples/*.svg
runclass.sh

/src/test/resources/*.svg

Expand Down Expand Up @@ -42,3 +43,4 @@ src/test/resources/examples/*nrn.py
/libjhdf5.so
/Test.gv
/Test.png
/src/test/resources/examples/report*.txt
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
dist: trusty
sudo: false
dist: xenial

language: java

jdk:
- openjdk7
- oraclejdk11

- openjdk8
- oraclejdk8
# - oraclejdk9
#- openjdk10 # Some non deterministic recurring error in jlems with jdk10...?
- openjdk11


install:
Expand Down Expand Up @@ -37,6 +37,7 @@ install:
- cd jLEMS
- git checkout $main_repo_branch
- mvn install
- mvn dependency:tree
- cd ..


26 changes: 20 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>org.neuroml.export</groupId>
<artifactId>org.neuroml.export</artifactId>
<packaging>bundle</packaging>
<version>1.6.1</version>
<version>1.7.2</version>
<name>org.neuroml.export</name>
<url>http://maven.apache.org</url>

Expand All @@ -18,12 +18,12 @@
<dependency>
<groupId>org.neuroml.model</groupId>
<artifactId>org.neuroml.model</artifactId>
<version>1.6.1</version>
<version>1.7.2</version>
</dependency>
<dependency>
<groupId>org.lemsml</groupId>
<artifactId>jlems</artifactId>
<version>0.10.1</version>
<version>0.10.4</version>
</dependency>
<dependency>
<groupId>org.apache.velocity</groupId>
Expand All @@ -33,11 +33,25 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.10.3</version>
<version>2.7.4</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<source>8</source>
<top>
&lt;br /&gt;&emsp;Learn more about NeuroML at &lt;a href=&quot;http://neuroml.org&quot; target=&quot;_blank&quot;&gt;NeuroML.org&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;
</top>
<bottom>Copyright NeuroML Contributors 2021</bottom>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
Expand Down Expand Up @@ -77,8 +91,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
Expand Down
26 changes: 26 additions & 0 deletions rebuild_for_geppetto.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
set -e

#### Script to rebuild libraries with modified dependencies required for use with Geppetto, e.g. https://github.com/openworm/org.geppetto.model.neuroml
## See https://github.com/NeuroML/org.neuroml.model.injectingplugin/blob/172771ec4f528a740bf68f6443e8b47cdf25cd25/pom.xml#L15

cd ../org.neuroml.model.injectingplugin/
mvn clean install -Dgeppetto

cd ../org.neuroml1.model
mvn clean install -Dgeppetto

cd ../NeuroML2
mvn clean install -Dgeppetto

cd ../org.neuroml.model
mvn clean install -Dgeppetto

cd ../jLEMS
mvn clean install

cd ../org.neuroml.export
mvn clean install -Dgeppetto




2 changes: 1 addition & 1 deletion src/main/java/org/neuroml/export/graph/GraphWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public String getMainScript() throws GenerationException

addComment(main, "GraphViz compliant export for:" + tgtNet.summary() + "\n");

main.append("digraph " + simCpt.getID() + " {\n");
main.append("digraph " + simCpt.getID().replaceAll("-", "_") + " {\n");
main.append("fontsize=10;\n\n");
if(rankdirLR) main.append("rankdir=\"LR\"\n");

Expand Down
Loading

0 comments on commit ce18e86

Please sign in to comment.