Skip to content

Commit

Permalink
Adding volt as known sbml unit.
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Jun 17, 2024
1 parent 44cfa92 commit cb2c52d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/org/neuroml/importer/sbml/SBMLImporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,11 @@ public static Lems convertSBMLToLEMS(File sbmlFile, float simDuration, float sim
newDim.setN(newDim.getN() + exponent * 1);
} else if (kind.equals("second")) {
newDim.setT(newDim.getT() + exponent * 1);
} else if (kind.equals("volt")) {
newDim.setM(newDim.getM() + exponent * 1);
newDim.setL(newDim.getL() + exponent * 2);
newDim.setT(newDim.getT() + exponent * -3);
newDim.setI(newDim.getI() + exponent * -1);
} else {
//TODO: Add all unit kinds from section 4.4.2 in SBML specs: http://sbml.org/Documents/Specifications
System.err.print("Add more unit definitions! Missing: "+kind);
Expand Down

0 comments on commit cb2c52d

Please sign in to comment.