2121
2222sbmlSupport_ , genesisSupport_ = True , True
2323try :
24- from . SBML .readSBML import mooseReadSBML
25- from . SBML .writeSBML import mooseWriteSBML
24+ import SBML .readSBML
25+ import SBML .writeSBML
2626except Exception as e :
2727 print ( 'MOOSE could not load SBML support' )
2828 print ( '\t Error was %s' % e )
3232 from .genesis .writeKkit import mooseWriteKkit
3333except Exception as e :
3434 print ( 'MOOSE could not load GENESIS support' )
35- print ( '\Error was %s' % e )
35+ print ( '\t Error was %s' % e )
3636 genesisSupport_ = False
3737
3838from add_Delete_ChemicalSolver import moosedeleteChemSolver ,mooseaddChemSolver
@@ -78,7 +78,7 @@ def mooseReadSBML( filepath, loadpath, solver = 'ee' ):
7878 if not os .path .isfile ( filepath ):
7979 raise UserWarning ( 'File %s not found' % filepath )
8080
81- mooseReadSBML ( filepath , loadpath , solver )
81+ return SBML . readSBML . mooseReadSBML ( filepath , loadpath , solver )
8282
8383
8484def mooseWriteSBML ( modelpath , filenpath , sceneitems = { } ):
@@ -101,9 +101,9 @@ def mooseWriteSBML( modelpath, filenpath, sceneitems = { } ):
101101 global sbmlSupport_
102102 if not sbmlSupport_ :
103103 print ( 'SBML support was not loaded' )
104- return None
104+ return None
105105
106- return mooseWriteSBML ( modelpath , filepath , sceneitems )
106+ return SBML . writeSBML . mooseWriteSBML ( modelpath , filepath , sceneitems )
107107
108108def mooseWriteKkit (modelpath ,filepath ):
109109 """Writes loded model under modelpath to a file in Kkit format.
0 commit comments