Skip to content

Commit 9156b89

Browse files
author
Dilawar Singh
committed
Fixes for issue #164. Also hotfix for branch chamcham.
1 parent e821a9d commit 9156b89

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

python/moose/moose.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
sbmlSupport_, genesisSupport_ = True, True
2323
try:
24-
from .SBML.readSBML import mooseReadSBML
25-
from .SBML.writeSBML import mooseWriteSBML
24+
import SBML.readSBML
25+
import SBML.writeSBML
2626
except Exception as e:
2727
print( 'MOOSE could not load SBML support' )
2828
print( '\tError was %s' % e )
@@ -32,7 +32,7 @@
3232
from .genesis.writeKkit import mooseWriteKkit
3333
except Exception as e:
3434
print( 'MOOSE could not load GENESIS support' )
35-
print( '\Error was %s' % e )
35+
print( '\tError was %s' % e )
3636
genesisSupport_ = False
3737

3838
from 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

8484
def 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

108108
def mooseWriteKkit(modelpath,filepath):
109109
"""Writes loded model under modelpath to a file in Kkit format.

0 commit comments

Comments
 (0)