|
From: <nik...@us...> - 2016-06-02 10:37:14
|
Revision: 638
http://sourceforge.net/p/sbfc/code/638
Author: niko-rodrigue
Date: 2016-06-02 10:37:11 +0000 (Thu, 02 Jun 2016)
Log Message:
-----------
commented the debug print of the first 150 characters of the input SBML file in SBML2SBML + trying to write the libsbml errors in the log when the conversion is not successful.
Modified Paths:
--------------
trunk/src/org/sbfc/converter/sbml2sbml/SBML2SBML.java
Modified: trunk/src/org/sbfc/converter/sbml2sbml/SBML2SBML.java
===================================================================
--- trunk/src/org/sbfc/converter/sbml2sbml/SBML2SBML.java 2016-06-02 10:30:56 UTC (rev 637)
+++ trunk/src/org/sbfc/converter/sbml2sbml/SBML2SBML.java 2016-06-02 10:37:11 UTC (rev 638)
@@ -111,10 +111,12 @@
try {
currentSBML = sbmlModel.modelToString();
- if (currentSBML != null && currentSBML.length() > 151) {
- System.out.println("SBML2SBML : converted model : \n" + currentSBML.substring(0, 150));
- }
- System.out.println();
+ System.out.println("SBML2SBML : current model size = " + currentSBML.length());
+
+// if (currentSBML != null && currentSBML.length() > 151) {
+// System.out.println("SBML2SBML : current model : \n" + currentSBML.substring(0, 150));
+// }
+// System.out.println();
} catch (WriteModelException e1) {
e1.printStackTrace();
return null;
@@ -138,9 +140,10 @@
// TODO : if setLevelAndVersion returned false, the conversion is not possible
// and we need to return the list of errors found by libSBML
- // Could be written in the notes of the empty sbml element
+ // Could be written in the notes of an empty sbml element
if (!isSetLVSuccesfull) {
+ System.out.println("SBML2SBML - Conversion was not possible, here are the errors returned by libSBML:");
libSBMLdoc.printErrors();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|