Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def getAntimony(self, current=False):
""" Antimony string of the original model loaded into roadrunner.
:param current: return current model state
:type current: bool
:return: Antimony
:rtype: str
"""
sbml = self.__getSBML(current)
from .. import sbmlToAntimony
return sbmlToAntimony(sbml)
def getSBMLAsAntimony(self, sbmlfile):
""" returns SBML as antimony
:param sbmlfile: filename of SBML file in COMBINE archive
:return: antimony string
:rtype: str
"""
warnings.warn('Use inline_omex instead.', DeprecationWarning)
zf = ZipFile(self.combinePath, 'r')
sbmlStr = zf.read(sbmlfile)
zf.close()
antStr = te.sbmlToAntimony(sbmlStr)
return antStr