def mooseWriteSBML(modelpath, filepath, sceneitems={}): """Writes loaded model under modelpath to a file in SBML format. (helper function for writeSBML). """ global sbmlImport_, sbmlError_ if not sbmlImport_: raise ImportError("SBML support could not be loaded because of '%s'" % sbmlError_) return _writeSBML.mooseWriteSBML(modelpath, filepath, sceneitems)
def mooseWriteSBML(modelpath, filepath, sceneitems={}): """Writes loaded model under modelpath to a file in SBML format. keyword arguments:\n modelpath -- model path in moose e.g /model/mymodel \n filepath -- Path of output file. \n sceneitems -- dictlist (UserWarning: user need not worry about this) \n layout position is saved in Annotation field of all the moose Object (pool,Reaction,enzyme)\n If this function is called from \n -- GUI, the layout position of moose object is passed \n -- command line, \n ---if genesis/kkit model is loaded then layout position is taken from the file \n --- else, auto-coordinates is used for layout position and passed """ if sbmlImport_: return _writeSBML.mooseWriteSBML(modelpath, filepath, sceneitems) else: print( sbmlError_ ) return False
def mooseWriteSBML(modelpath, filepath, sceneitems={}): """mooseWriteSBML: Writes loaded model under modelpath to a file in SBML format. Parameters ---------- modelpath : str model path in moose e.g /model/mymodel \n filepath : str Path of output file. \n sceneitems : dict UserWarning: user need not worry about this layout position is saved in Annotation field of all the moose Object (pool,Reaction,enzyme). If this function is called from * GUI - the layout position of moose object is passed * command line - NA * if genesis/kkit model is loaded then layout position is taken from the file * otherwise auto-coordinates is used for layout position. """ if sbmlImport_: return _writeSBML.mooseWriteSBML(modelpath, filepath, sceneitems) else: logger_.error(sbmlError_) return False
def mooseWriteSBML(modelpath, filepath, sceneitems={}): """mooseWriteSBML: Writes loaded model under modelpath to a file in SBML format. Parameters ---------- modelpath : str model path in moose e.g /model/mymodel \n filepath : str Path of output file. \n sceneitems : dict UserWarning: user need not worry about this layout position is saved in Annotation field of all the moose Object (pool,Reaction,enzyme). If this function is called from * GUI - the layout position of moose object is passed * command line - NA * if genesis/kkit model is loaded then layout position is taken from the file * otherwise auto-coordinates is used for layout position. """ if sbmlImport_: return _writeSBML.mooseWriteSBML(modelpath, filepath, sceneitems) else: print( sbmlError_ ) return False