def cellmlFileToAntimony (CellMLFileName): """Load a cellml file and return the equivalent antimony string: ant = cellMLToAntimony('mymodel.cellml') """ if libantimony.loadCellMLFile(CellMLFileName) == -1: raise Exception ('Error calling loadCellMLFile') libantimony.loadCellMLFile(CellMLFileName) return libantimony.getAntimonyString (None)
def cellmlStrToSBML (CellMLStr): """Convert a cellml string into the equivalent SBML string: sbmlStr = cellMLStrToSBML('mymodel.cellml') """ if libantimony.loadCellMLFile(CellMLStr) < 0: raise Exception ('Error calling cellMLStrToSBML' + libantimony.getLastError()) return libantimony.getSBMLString (None)
def cellmlStrToAntimony (CellMLStr): """Convert a cellml string into the equivalent antimony string: ant = cellMLStrToAntimony('mymodel.cellml') """ if libantimony.loadCellMLFile(CellMLStr) < 0: raise Exception ('Error calling cellMLStrToAntimony' + libantimony.getLastError()) return libantimony.getAntimonyString (None)
def cellmlFileToSBML (CellMLFileName): """Load a cellml file and return the equivalent SBML string: sbmlStr = cellMLToSBML('mymodel.cellml') """ if libantimony.loadCellMLFile(CellMLFileName) < 0: raise Exception ('Error calling loadCellMLFile'+ libantimony.getLastError()) return libantimony.getSBMLString (None)