Skip to content

Commit c527321

Browse files
authored
Merge pull request #119 from NeuroML/experimental
Add location of neuron when pip installed on Binder
2 parents de789e6 + ae0ef92 commit c527321

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/main/java/org/lemsml/export/sedml/SEDMLWriter.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import java.io.IOException;
55
import java.util.ArrayList;
66
import java.util.List;
7+
import java.util.Arrays;
78

89
import org.lemsml.export.base.AXMLWriter;
910
import org.lemsml.jlems.core.logging.E;
@@ -67,9 +68,18 @@ public String getMainScript() throws ContentError
6768

6869
StringBuilder main = new StringBuilder();
6970
main.append("<?xml version='1.0' encoding='UTF-8'?>\n");
70-
String[] attrs = new String[] { "xmlns=http://sed-ml.org/sed-ml/level"+SEDML_LEVEL+"/version"+SEDML_VERSION, "level="+SEDML_LEVEL, "version="+SEDML_VERSION+"", "xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance",
71+
String[] attrs = new String[] { "xmlns=http://sed-ml.org/sed-ml/level"+SEDML_LEVEL+"/version"+SEDML_VERSION,
72+
"level="+SEDML_LEVEL,
73+
"version="+SEDML_VERSION+"",
74+
"xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance",
7175
"xsi:schemaLocation=http://sed-ml.org/sed-ml/level"+SEDML_LEVEL+"/version"+SEDML_VERSION+" " + PREF_SEDML_SCHEMA };
7276

77+
if(modelFormat == Format.SBML)
78+
{
79+
attrs = Arrays.copyOf(attrs, attrs.length + 1);
80+
attrs[attrs.length-1] = "xmlns:sbml=http://www.sbml.org/sbml/level2/version2";
81+
}
82+
7383
startElement(main, "sedML", attrs);
7484
startElement(main, "notes");
7585
startElement(main, "p", "xmlns=http://www.w3.org/1999/xhtml");

src/main/java/org/neuroml/export/neuron/ProcessManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ else if (Utils.isLinuxBasedPlatform())
8383
options.add("/usr");
8484
options.add("/usr/local");
8585
options.add("/usr/local/nrn/x86_64");
86+
options.add("/srv/conda/envs/notebook/"); // location of neuron when pip installed on Binder...
8687
}
8788

8889
for (String option : options)

0 commit comments

Comments
 (0)