Update to SBML Level 3 Version 2
This commit is contained in:
parent
df9ed4e1f4
commit
e8cde0e3ab
2 changed files with 3 additions and 3 deletions
|
|
@ -212,9 +212,9 @@ public class Analysis implements BioObserver
|
|||
analysis.propertiesMap.put(data, value);
|
||||
break;
|
||||
case "-outDir":
|
||||
analysis.properties.setOutDir(value);
|
||||
File file = new File(value);
|
||||
file.mkdirs();
|
||||
analysis.properties.setOutDir(file.getAbsolutePath());
|
||||
break;
|
||||
default:
|
||||
usage();
|
||||
|
|
|
|||
|
|
@ -5681,7 +5681,7 @@ public class SBMLutilities extends CoreObservable
|
|||
}
|
||||
|
||||
// convert document
|
||||
ConversionProperties prop = new ConversionProperties(new SBMLNamespaces(3, 1));
|
||||
ConversionProperties prop = new ConversionProperties(new SBMLNamespaces(3, 2));
|
||||
prop.addOption("strict", false);
|
||||
prop.addOption("setLevelAndVersion", true);
|
||||
prop.addOption("ignorePackages", true);
|
||||
|
|
@ -5813,7 +5813,7 @@ public class SBMLutilities extends CoreObservable
|
|||
}
|
||||
}
|
||||
convertToL3(doc);
|
||||
doc.setLevelAndVersion(GlobalConstants.SBML_LEVEL, GlobalConstants.SBML_VERSION, false);
|
||||
//doc.setLevelAndVersion(GlobalConstants.SBML_LEVEL, GlobalConstants.SBML_VERSION, false);
|
||||
/*
|
||||
* for (int i = 0; i < doc.getNumErrors(); i++) {
|
||||
* System.out.println(doc.getError(i).getMessage()); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue